Python chromedriver运行报错:Runtime.executionContextCreated has invalid 'context'

猩猿动力 猩猿动力 2018年08月12日 12:09:31 阅读 383

在调试chromedriver时,报错。报错信息如下:

orhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: 
Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"5528.1","is
Default":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=55.0.2883.87)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.1 SP1 x86_64)

经过查阅资料,发现是驱动包太老的原因。比较下载的是2.9版本的包,实际2.29的更新,大家可以看下包的更新时间。

下载地址:http://npm.taobao.org/mirrors/chromedriver/2.29/

Python chromedriver运行报错:Runtime.executionContextCreated has invalid 'context' -图片-1


用户评论