Selenium QQ Quick Security login cannot be clicked

Test Google browser to log in to JD.com, click on the page that pops up after a quick login of QQ, and click on the QQ avatar using selenium. There has been no response. You can successfully obtain the return information of the web page, but the click cannot be realized. Please help with the test or see where there is a problem.

driver = webdriver.Chrome()
driver.get("https://passport.jd.com/new/login.aspx")
driver.find_element_by_xpath("//*[@id="kbCoagent"]/ul/li[1]/a/span").click()
time.sleep(3)

driver.find_element_by_id("nick_27062XXX").click()

driver.find_element_by_xpath("//*[@id="img_out_27062xxx"]").click()

Apr.03,2021

if your code runs directly, it will run normally.
driver = webdriver.Chrome ()
driver.get ("https://passport.jd.com/new/login.aspx")
driver.find_element_by_xpath('//*[@id="kbCoagent"]/ul/li[1]/a/span').click()
is shown in figure

).

clipboard.png

from the figure, you can find that this module is actually an iframe, that needs to switch to this iframe to operate. Change your code. I have successfully tested it here

.
driver = webdriver.Chrome()
driver.get("https://passport.jd.com/new/login.aspx")
driver.find_element_by_xpath('//*[@id="kbCoagent"]/ul/li[1]/a/span').click()
iframe = driver.find_element_by_xpath(".//*[@id='ptlogin_iframe']")
driver.switch_to_frame(iframe)
driver.find_element_by_xpath(".//*[@id='switcher_plogin']").click()
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b6c4e-266e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b6c4e-266e1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?