简体   繁体   English

selenium ChromeDriver 仅支持 Chrome 版本 91

[英]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兼容

That is because you have downloaded the chromedriver that supports only Chrome version 91. You can download the chromedriver best suited for your version here那是因为您已经下载了仅支持 Chrome 版本 91 的 chromedriver。您可以在此处下载最适合您的版本的 chromedriver

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.

相关问题 ChromeDriver 版本不匹配错误:session 未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 91 - ChromeDriver version mismatch error: session not created: This version of ChromeDriver only supports Chrome version 91 Selenium报错:这个版本的ChromeDriver只支持Chrome 83版? - Selenium error: This version of ChromeDriver only supports Chrome version 83? Selenium 报错:这个版本的ChromeDriver只支持Chrome 81版 - Selenium Error: This version of ChromeDriver only supports Chrome version 81 Python selenium - session not created: This version of ChromeDriver only supports Chrome version 86 using ChromeDriver and Chrome with Selenium - Python selenium - session not created: This version of ChromeDriver only supports Chrome version 86 using ChromeDriver and Chrome with Selenium SessionNotCreatedException:此版本的 ChromeDriver 仅支持 Chrome 版本 84 使用 ChromeDriver 和 Chrome 通过 Selenium 和 Python - SessionNotCreatedException: This version of ChromeDriver only supports Chrome version 84 using ChromeDriver and Chrome through Selenium and Python SessionNotCreatedException:消息:会话未创建:此版本的 ChromeDriver 仅支持带有 Selenium ChromeDriver 的 Chrome 版本 76 - SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 76 with Selenium ChromeDriver 此版本的 ChromeDriver 仅支持 Chrome 102 版本 - This version of ChromeDriver only supports Chrome version 102 Ubuntu:selenium.common.exceptions:会话未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 79 - Ubuntu: selenium.common.exceptions: session not created: This version of ChromeDriver only supports Chrome version 79 selenium.common.exceptions.SessionNotCreatedException:消息:session 未创建:此版本的 ChromeDriver 仅支持 Chrome 版本 85 - selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 85 Python Selenium 错误“此版本的 ChromeDriver 仅支持 Chrome 版本 79。” - Python Selenium Error “This version of ChromeDriver only supports Chrome version 79.”
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM