网站制作学习网经验与学习→正文:Message: session not created: This version of ChromeDriver only suppor
字体:

Message: session not created: This version of ChromeDriver only suppor

经验与学习 2023/7/7 11:18:09  点击:不统计


 在用python selenium 调用chromedrivers 时,出现了Message: session not created: This version of ChromeDriver only supports Chrome version 版本错误

实际问题时 chrome 自动升级了,导致 chromedirver 与系统安装的chrome 不匹配导致。
解决方法如下:
1. 首先查看chrome 版本
点击浏览器右上角 三个点, 选择最下面 “帮助 》 关于Google Chrome” 点看后就会看到版本号了。
一般版本号如下:
 
Chrome 已是最新版本
版本 114.0.5735.198(正式版本) (x86_64)
 
我们就可以知道自己chrome 版本号为114.0.5735.198  以前三个号为基准 即114.0.5735
 
 
2. 下载chromedirvers 对应版本的。
下载地址:http://chromedriver.storage.googleapis.com/index.html
选择对应的版本号。根据自己的系统选择
[DIR] chromedriver_linux64.zip linux 系统
[DIR] chromedriver_mac64.zip     苹果ios系统(Intel芯片)
[DIR] chromedriver_mac_arm64.zip 苹果ios arm 处理器(M芯片)
[DIR] chromedriver_win32.zip       window系统
 
3. 下载解压后,替换 chromedirver 
windows 根据实际路径替换
mac/linux 在 /usr/local/bin 下面
或者直接 写对应的 物理路径即可。
 
重新运行就没有对应的错误了。

·上一篇:nginx referer防盗连 >>    ·下一篇:ssl_client_socket_impl.cc(992) handshake failed;returned -1,SSL error >>
推荐文章
最新文章