提示报错:selenium.common.exceptions.SessionNotCreatedException
来源:2-1 selenium环境搭建

墨潞
2019-11-27
问题:
之前一直运行OK的,今天运行突然提示:selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 76
查看资料原来是chromedriver版本和chrome版本不兼容原因。
chrome版本为:78.0.3904.108
于是重新安装chromedriver版本为78 、79、77 都试过了。(PS:官网上找不到完全对应的。)
核对版本:
$ chromedriver -v
ChromeDriver 78.0.3904.70 (edb9c9f3de0247fd912a77b7f6cae7447f6d3ad5-refs/branch-heads/3904@{#800})
但是运行还是报相同的错误。。。
写回答
1回答
-
对的 就是浏览器 不匹配http://npm.taobao.org/mirrors/chromedriver 你看一下,你要根据你浏览器版本去选择驱动。不是驱动选浏览器。
022019-11-28
相似问题