Python Selenium Chrome驱动程序版本123.0.6312.86
之前我在conda虚拟环境中安装了Chrome驱动程序版本103.0.5060.53,但现在Chrome更新到了新版本123.0.6312.86,所以我的脚本无法正常工作。我想更新到新的稳定版Chrome驱动程序123.0.6312.86。
有人能指导我一下吗?我该如何在我的虚拟环境中安装新的Chrome驱动程序版本?
我遇到了以下错误:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 103
Current browser version is 123.0.6312.86 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe
2 个回答
0
1. 从这里下载适合你操作系统的新ChromeDriver。这个版本要和你安装的Chrome浏览器版本一致。
2. 把项目里旧的ChromeDriver文件替换成新的那个。
3
https://googlechromelabs.github.io/chrome-for-testing/ 内容必须至少有30个字符;你输入的是0个。