美文网首页
centos chromedriver and chrome-g

centos chromedriver and chrome-g

作者: 王国的荣耀 | 来源:发表于2021-09-03 15:35 被阅读0次

    Message: session not created: This version of ChromeDriver only supports Chrome

    Message: session not created: This version of ChromeDriver only supports Chrome version 90
    Current browser version is 93.0.4577.63 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

    http://chromedriver.storage.googleapis.com/index.html
    下载对应的chromedriver版本。

    错误 :'chromedriver' executable needs to be in PATH.

    DeprecationWarning: use options instead of chrome_options
    driver = webdriver.Chrome(executable_path="/bin/chromedriver", chrome_options=options)
    Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home

    centos 安装google-chrome

    yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm

    安装 chromedriver

    https://npm.taobao.org/mirrors/chromedriver/93.0.4577.15/
    wget https://npm.taobao.org/mirrors/chromedriver/93.0.4577.15/chromedriver_linux64.zip
    unzip chromedriver_linux64.zip
    which chromedriver
    mv ./chromedriver /usr/bin/chromedriver
    ln -s /usr/bin/chromedriver /bin/chromedriver

    相关文章

      网友评论

          本文标题:centos chromedriver and chrome-g

          本文链接:https://www.haomeiwen.com/subject/qeskwltx.html