[英]selenium ChromeDriver only supports Chrome version 91
I working on selenium and I face following error我在 selenium 上工作,我面临以下错误
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 91
Current browser version is 90.0.4430.212
with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome当前浏览器版本为90.0.4430.212
,二进制路径为 /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
As literally mentioned in the error, you are using incorrect version of ChromeDriver.正如错误中字面提到的,您使用的 ChromeDriver 版本不正确。
So, you have to download ChromeDriver version according to Chrome browser version you are using.因此,您必须根据您使用的 Chrome 浏览器版本下载 ChromeDriver 版本。
you are using beat version of chromdriver which is 90.0.4430.212, Not that it is not a stable driver.您使用的是 chromdriver 的节拍版本,即 90.0.4430.212,并不是说它不是稳定的驱动程序。 You can download 90.0
from the below link.您可以从以下链接下载90.0
。
You need to have compatible version of selenium and chromedriver.您需要兼容版本的 selenium 和 chromedriver。
Download latest selenium web driver from here here从这里下载最新的 selenium web 驱动程序
Download latest and compatible version of chromedriver from here here从这里下载最新和兼容版本的 chromedriver
latest chromedriver version is Latest stable release: ChromeDriver 90.0.4430.24
this is compatible with Selenium 3.141.59
最新的 chromedriver 版本是Latest stable release: ChromeDriver 90.0.4430.24
这与Selenium 3.141.59
兼容
I just fixed it my manually setup path我刚刚修复了我的手动设置路径
driver = webdriver.Chrome(executable_path="/Applications/MAMP/htdocs/automation/chromedriver")
I started receiving this error after a manual Chrome update, then my node app started to give me the exact message above about Chrome version 91.我在手动更新 Chrome 后开始收到此错误,然后我的节点应用程序开始向我提供上面关于 Chrome 版本 91 的确切消息。
After reading this thread and a few other things, I decided to run npm outdated
with this result:在阅读了这个线程和其他一些东西之后,我决定运行npm outdated
并得到这个结果:
Package Package | Current当前的 | Wanted通缉 | Latest最新的 | Location地点 |
---|---|---|---|---|
chromedriver铬驱动程序 | 91.0.1 91.0.1 | 91.0.1 91.0.1 | 92.0.2 92.0.2 | selenium selenium |
I modified my package.json chromedriver dependency to the 92.0.2 version and then ran: npm update
, my node app now works fine.我将我的 package.json chromedriver 依赖项修改为 92.0.2 版本,然后运行: npm update
,我的节点应用程序现在可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.