这是由于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

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐