Home > other >  SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports
SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports

Time:03-25

I am currently new to python and PyCharm I am using the latest version of chrome on windows i keep getting this message (see below) when running the command:

driver.get("http://www.google.com/")

Error:

Message: session not created: This version of ChromeDriver only supports Chrome version 99
Current browser version is 95.0.4638.54 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

CodePudding user response:

This error message...

Message: session not created: This version of ChromeDriver only supports Chrome version 99
Current browser version is 95.0.4638.54 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. session.

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

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

Supports Chrome version 99

  • But you are using chrome=95.0

So there is a clear mismatch between chromedriver=99.0 and the chrome=95.0


Solution

Ensure that:

  • Related