这是由于selenium4.10.0中的更改,如果你想传入一个executable_path,你现在必须使用service参数。

AttributeError: 'WebDriver' object has no attribute 'find_element_by_xpath'

改为:driver.find_element(By.XPATH,Xpath)

Microsoft Edge WebDriver - Microsoft Edge Developer

http://selenium-release.storage.googleapis.com/index.html

http://chromedriver.storage.googleapis.com/index.html

Logo

AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。

更多推荐