selenium.common.exceptions.WebDriverException: Message: ‘MicrosoftWebDriver.exe‘ executable needs to

selenium.common.exceptions.WebDriverException: Message: ‘MicrosoftWebDriver.exe‘ executable needs to,第1张

错误代码:

原因分析:

Edge浏览器中没有驱动器

解决方法:

1.查看浏览器版本

2.下载驱动器
下载地址:https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/
注意:驱动器版本很多,一定要下载和浏览器版本匹配的。如果没有完全匹配的驱动器,选择现有的小于浏览器版本的最近一个驱动器。

3.将驱动器解压到python的默认路径下,确保两者在同一目录下。

4.将msedgedriver.exe改名为MicrosoftWebDriver.exe

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/800705.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-07
下一篇2022-05-07

发表评论

登录后才能评论

评论列表(0条)

    保存