我刚开始学习硒。现在我正在使用Python。我试过这个:
from selenium import webdriver
driver = webdriver.Edge()并得到错误消息:
WebDriverException: Message: 'MicrosoftWebDriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687因此,我按照链接下载了最新版本,但得到了一个新错误:
driver = webdriver.Edge('edgedriver_win64\msedgedriver.exe')
SessionNotCreatedException: Message: session not created: This version of MSEdgeDriver only supports MSEdge version 90
Current browser version is 81.0.416.77 with binary path C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe现在我不知道该怎么办了。从下载链接中找到的webdrvier的早期版本是88。
发布于 2021-02-03 03:57:15
更新边缘浏览器或使用先前版本的驱动程序
您可以从以下网站下载以前的版本:
https://msedgewebdriverstorage.z22.web.core.windows.net/
点击下一页直到你得到你想要的版本,
https://stackoverflow.com/questions/66020847
复制相似问题