Web自动化实战:Python与Chromedriver 134的安装指南及对应Chrome版本134.0.6998的注意事项

1、查看电脑安装的Google Chrome版本

2、打开chrome驱动官网,下载对应驱动

官网链接:https://googlechromelabs.github.io/chrome-for-testing/
下载适合自己电脑的压缩包
下载适合自己电脑的压缩包

3、将解压的.exe文件放至python项目运行的根目录


根目录下面

4、踩坑点

chrome.exe或者python.exe的目录下放了一个旧版本的chromedriver 120,会导致python运行结果一直是报以下错误:
session not created: This version of ChromeDriver only supports Chrome version 120
Current browser version is 134.0.6998.89 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

注意检查chrome.exe、python.exe的目录!!!

作者:倒霉熊叔叔

物联沃分享整理
物联沃-IOTWORD物联网 » Web自动化实战:Python与Chromedriver 134的安装指南及对应Chrome版本134.0.6998的注意事项

发表回复