TypeError: WebDriver.__init__() got an unexpected keyword argument ‘executable_path‘

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

TypeError: WebDriver.__init__() got an unexpected keyword argument ‘executable_path‘_第1张图片

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

你可能感兴趣的:(python,开发语言)