chromedriver
版本不匹配
- 报错:
selenium.common.exceptions.SessionNotCreatedException: Message: session not created
selenium.common.exceptions.WebDriverException: Message: session not created:
- 原因:
Chrome版本和ChromeDriver
版本不一致,极有可能是Chrome浏览器自动升级了新版本,导致两者版本差异,运行不了。 - 解决方案:
-
查看Chrome浏览器的版本
-
在浏览器上方地址栏输入:
chrome://version/
-
显示如下:
-
下载对应版本的驱动
chromedriver
下载地址:
http://chromedriver.storage.googleapis.com/index.html
-
下拉网页找到对应版本,下载后解压
-