简体   繁体   English

不支持 python selenium 边缘 webdriver 版本

[英]python selenium edge webdriver version not supported

I am just getting started with Selenium.我刚刚开始使用 Selenium。 Right now I'm using Python.现在我正在使用 Python。 I tried this:我试过这个:

from selenium import webdriver 
driver = webdriver.Edge()

and got the error message:并收到错误消息:

WebDriverException: Message: 'MicrosoftWebDriver.exe' executable needs to be in PATH. Please download from http://go.microsoft.com/fwlink/?LinkId=619687

So I followed the link and downloaded the latest version, but got a new error:因此,我按照链接下载了最新版本,但出现了新错误:

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

Now I don't know what to do.现在我不知道该怎么办。 The earlies version for the webdrvier found from the download link is 88.下载链接中找到的 webdrvier 的早期版本是 88。

Update edge browser or use a previous version of driver更新边缘浏览器或使用以前版本的驱动程序

You can download previous version from:您可以从以下位置下载以前的版本:

https://msedgewebdriverstorage.z22.web.core.windows.net/ https://msedgewebdriverstorage.z22.web.core.windows.net/

Click next page till you get the version you want,点击下一页,直到你得到你想要的版本,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM