网站更新内容:请访问: https://bigdata.ministep.cn/

python selenium 版本不匹配解决

error提示:

from session not created: This version of ChromeDriver only supports Chrome version 88
Current browser version is 90.0.4430.85

方法一:

安装管理器:

pip install webdriver-manager

与Chrome搭配使用:

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager

driver = webdriver.Chrome(ChromeDriverManager(version="90.0.4430.24").install())
driver.get("https://www.google.com")

version 就是网页版chrome driver 下载地址
比如:https://chromedriver.storage.googleapis.com/index.html?path=90.0.4430.24/

解决办法下载最新的chrome driver 即可解决

参考

java - Selenium Chrome Driver crashes on running a project - Stack Overflow]
python - session not created: This version of ChromeDriver only supports Chrome version 88 - Stack Overflow]

附注

chrome driver 所有的版本地址如下:
https://chromedriver.storage.googleapis.com/index.html]

posted @ 2021-04-26 19:37  ministep88  阅读(532)  评论(1)    收藏  举报
网站更新内容:请访问:https://bigdata.ministep.cn/