zoukankan      html  css  js  c++  java
  • chromedriver与chrome版本映射表

    问题:

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

    C:Users\Desktopselenium>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:pathonlibsite-packagesseleniumwebdriver emotewebdriver.py", line 324, in get
        self.execute(Command.GET, {'url': url})
      File "D:pathonlibsite-packagesseleniumwebdriver emotewebdriver.py", line 312, in execute
        self.error_handler.check_response(response)
      File "D:pathonlibsite-packagesseleniumwebdriver emoteerrorhandler.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:UserswangqianqianAppDataLocalopenvropenvrpaths.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

     
  • 相关阅读:
    while循环
    赋值运算符、逻辑运算符补充
    布尔类型 基本运算符 if判断
    输入 格式化输出
    计算机基础
    python介绍 编程语言分类及对比 python解释器安装(多版本共存) 变量 数据类型(三种)
    UDP套接字协议
    软件工程个人作业01
    网页版增加信息---添加
    javaWeb项目技术
  • 原文地址:https://www.cnblogs.com/wangqianqiannb/p/8884168.html
Copyright © 2011-2022 走看看