selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome version must be between 70 and 73 with ChromeDriver

前端 未结 11 1432
轮回少年
轮回少年 2021-02-05 08:03

I am trying to create a webcrawler using Selenium, but I get this error when I try to create the webdriver object.

selenium.common.exceptions.SessionNotCreatedEx         


        
11条回答
  •  北荒
    北荒 (楼主)
    2021-02-05 09:00

    I encountered the same problem. I tried installing a downgraded version of Chrome (current stable was 74 and the driver required chrome version must be between 70-73) but I wasn't able to do so.

    I found another way. This link will show you which version is compatible with your current google-chrome (to know your version the command is google-chrome --version)

    This link will guide you as to how to install chrome driver with zip file. The commands are:

    cd
    wget 
    unzip chromedriver_linux64.zip
    sudo mv chromedriver /usr/bin/chromedriver
    sudo chown root:root /usr/bin/chromedriver
    sudo chmod +x /usr/bin/chromedriver
    

    In case the error comes No such file or directory: '/usr/lib/chromium-browser/chromedriver' OR the same error persists

    Repeat the above procedure with the path /usr/lib/chromium-browser/chromedriver instead of /usr/bin/chromedriver

    For me, google-chrome version 74 worked with ChromeDriver version 73

提交回复
热议问题