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

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


For me, upgrading the driver did the trick. Just run:

brew cask upgrade chromedriver

and then try running your test again. Hope it helps!


You can find the older versions of chrome driver here.

I dont think it is a good idea to install chrome from sources other than the official channel and installation of the same can cause issues. See if the google update service is running in your PC. This will automatically update the chrome version to latest. Mine is running Version 71.0.3578.98 (Official Build) (64-bit).


This error message...

selenium.common.exceptions.SessionNotCreatedException: Message: session not created: Chrome version must be between 70 and 73(Driver info: chromedriver=2.45.615291 (ec3682e3c9061c10f26ea9e5cdcf3c53f3f74387),platform=Windows NT 6.1.7601 SP1 x86_64)

...implies that Chrome version must be between 70 and 73


Your main issue is the version compatibility between the binaries you are using as follows :

  • You are using chromedriver=2.45
  • Release Notes of chromedriver=2.45 clearly mentions the following :

Supports Chrome v70-72

  • You are using chrome=68.0
  • Release Notes of ChromeDriver v2.41 clearly mentions the following :

Supports Chrome v67-69

So there is a clear mismatch between ChromeDriver v2.45 and the Chrome Browser v68.0


Solution


Alternative

Somehow I feel there are 2 versions of Chrome browser installed in your system. If that is the case you need to mention the absolute location of the Chrome binary within your program and you can use the following solution:

  • Code Block:

    from selenium import webdriverfrom selenium.webdriver.chrome.options import Optionsoptions = Options()options.binary_location = "C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"driver = webdriver.Chrome(chrome_options=options, executable_path="C:/Utility/BrowserDrivers/chromedriver.exe", )driver.get('http://google.com/')
  • You can find a detailed discussion in Set chrome browser binary through chromedriver in Python

Note: You can find a relevant discussion in Session not created exception: Chrome version must be >= x.y.z when using Selenium Webdriver with Chrome


Reference

You can find a relevant detailed discussion in: