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

     
  • 相关阅读:
    DOCKER启动失败Job for docker.service failed because the control process exited with error code. See "syste mctl status docker.service" and "journalctl -xe" for details.
    windows查看系统安装的补丁
    vue生命周期
    VUE 图片上传/剪切(vue-cropper)
    mysql性能优化关键点
    element vue-quill-editor 富文本编辑器 安装使用
    Module build failed: Error: Node Sass version 6.0.0 is incompatible with ^4.0.0.
    npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 It was specified as a dependency of 'hr_front_end'
    __WEBPACK_AMD_DEFINE_ARRAY__ is not defined
    利用BERT得到句子的表示向量(pytorch)
  • 原文地址:https://www.cnblogs.com/wangqianqiannb/p/8884168.html
Copyright © 2011-2022 走看看