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

前端 未结 11 1693
轮回少年
轮回少年 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 08:47

    In Summary:

    • Find your chrome version (Help-> About Google Chrome)
    • Find your chromedriver version, if you already have one. (For me "chromedriver.exe -v" gave me the version on windows environment.)
    • Visit the official chrome webdriver page (http://chromedriver.chromium.org/downloads)
    • Download the chromedriver matching your chrome browser version, from the above download location.
    • Have a glance at the release notes on this download page towards lower section of the page, which gives an clear idea regarding which driver to use for which version of browser.
    • You can put the downloaded chromedriver binary in the path environment.

    There you go. All the best!

提交回复
热议问题