chromedriver与chrome版本映射表

时间:2023-01-10 13:47:47

问题:

利用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的对应关系表 

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