【发布时间】:2021-01-09 02:20:27
【问题描述】:
我浪费了很多时间来弄清楚为什么司机不想点击这个按钮。我相信有人可以帮助我解决这个问题。 enter image description here
我需要点击“输入密码”。
我好累。我一直试图找出一个超过 10 小时的原因,但我仍然不能。我检查了很多关于 Selenium、xpath、span 等的线程。我尝试使用 execute_script() 启动此查找器,但它仍然无法也找不到此按钮并单击此按钮。
网站:https://e.mail.ru/login?email=
self.driver.find_element_by_id("//span[@class='inner-1-1-75 innerTextWrapper-1-1-76']")
"//span[contains(text(), 'Enter password')]//parent::button"
/span[contains(.,'Enter password')]
【问题讨论】: