One - One Code All

Blog Content

selenium webdriver启动Chrome浏览器后报错unknown error

Python 前端相关   2016-12-23 22:18:21

报错:selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"3624.1","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=54.0.2840.99)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)


表示chrome浏览器版本为54.0.2840.99,但是chromedriver版本为2.9.248315。版本不兼容

网上找了遇到相同问题的解决办法 http://blog.csdn.net/u012246342/article/details/52860949

下载v2.24版本的chromedriver.exe替换原有的chromedriver.exe(下载地址: http://chromedriver.storage.googleapis.com/index.html?path=2.24/ )


上一篇:Docker安装PostgreSQL
下一篇:python中str函数isdigit、isdecimal、isnumeric的区别

The minute you think of giving up, think of the reason why you held on so long.