运行testcase时报如下错误:
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 86
出现该问题的原因是:selenium模拟的客户端对浏览器的操作,但相应浏览器的驱动版本不匹配导致的。
解决办法:
1.找到我们当前使用浏览器的版本:chrome://version/
2.下载对应的浏览器驱动:http://npm.taobao.org/mirrors/chromedriver ,只需要根据操作系统,选择不同的zip下载即可
3.zip解压后将 chromedriver.exe 放在谷歌安装目录下;将chromedriver.exe 放在python安装的目录下script下