chromedriver与chrome版本映射表


chromedriver与chrome版本映射表

问题:

利用selenium调用谷歌浏览器时报错,后发现是由于浏览器与浏览器驱动不匹配造成的

C:\Users\\Desktop\selenium>python chrome.py
[9956:6992:0419/161807.014:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.

DevTools listening on ws://127.0.0.1:12731/devtools/browser/0410b919-e0f6-4dd7-92cd-07f869c6d473
[9956:6992:0419/161810.342:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:6992:0419/161810.852:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:7108:0419/161811.325:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:6992:0419/161812.007:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:8832:0419/161812.479:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:8832:0419/161812.538:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
[9956:8832:0419/161812.596:ERROR:persistent_memory_allocator.cc(845)] Corruption detected in shared-memory segment.
Traceback (most recent call last):
  File "chrome.py", line 6, in <module>
    driver.get('http://radar.kuaibo.com')
  File "D:\pathon\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 324, in get
    self.execute(Command.GET, {'url': url})
  File "D:\pathon\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 312, in execute
    self.error_handler.check_response(response)
  File "D:\pathon\lib\site-packages\selenium\webdriver\remote\errorhandler.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":"AAC09E001631CBF3FFAE97A69570DF6A","isDefault":true},"id":1,"name":"","origin":"://"}
  (Session info: chrome=66.0.3359.117)
  (Driver info: chromedriver=2.9.248315,platform=Windows NT 6.3 x86_64)

[14340:7108:0419/162207.425:ERROR:ppapi_thread.cc(310)] Failed to load Pepper module from internal-not-yet-present (error: 126)
Unable to read VR Path Registry from C:\Users\wangqianqian\AppData\Local\openvr\openvrpaths.vrpath
[9956:6944:0419/162556.199:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162557.774:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162559.339:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162600.907:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162602.580:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162604.126:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162605.692:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162607.266:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162608.837:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162610.413:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162611.994:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162613.566:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162615.135:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162616.742:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.
[9956:6944:0419/162618.313:ERROR:latency_info.cc(164)] Display::DrawAndSwap, LatencyInfo vector size 102 is too big.

 

chromedriver与chrome的对应关系表 

 

 驱动下载地址:https://npm.taobao.org/mirrors/chromedriver/

 

 

 

摘自:https://blog.csdn.net/huilan_same/article/details/51896672

   http://www.mamicode.com/info-detail-2238607.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值