我正在寻找做一个程序的乐趣,但我有一些问题硒和我 需要帮助。。。 这是程序(我删除了webdriver的目录,因为文件夹名中包含了其他人的名字)
from selenium import webdriver
import webbrowser
import time
def Pass_send_():
driver=webdriver.Chrome()
driver.get('chrome://flags/#password_export-enable')
ricerca=driver.find_element_by_id("search")
ricerca.send_keys('password export')
scorritore=driver.find_element_by_class_name('experiment-select')
scorritore.click()
Pass_send_()
所以它的目的很简单,它应该打开一个窗口,输入一个文本,然后单击一个按钮。一切正常,但点击无效,错误如下:
^{pr2}$所以我不是专家,但它说:元素不可交换?这是什么意思?我怎样才能修复它?我真的很感谢你的回复。。。在
要将字符序列发送到网页^{中的搜索框,您需要诱导WebDriverWait,您可以使用以下解决方案:
代码块:
浏览器快照:
相关问题 更多 >
编程相关推荐