Python Selenium启动浏览器,Chrome Driver版本不匹配

1. 关闭Chrome浏览器自动更新

教程链接https://www.llqzj.net/chrome/11462.html

2. 下载对应版本Chrome驱动

下载地址:https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location/#download-the-driver
如果浏览器已自动更新到最新版本,可能无法找到对应的Chrome驱动,可下载对应的测试版本:https://googlechromelabs.github.io/chrome-for-testing/

3. 将驱动程序(chromedriver.exe)放置到Python安装路径中即可

如:C:\Python38

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容