0

I'm trying to run selected tests on Visual Studio (Selenium C#) and getting error message:

System.InvalidOperationException: session is not created: This version of ChromeDriver only supports Chrome versione 97. Current Browser version is 100.0.4896.88

TearDown:

SystemNullReferenceException: Onject reference not set to an instance of an object.

The Problem is in other solution created by myself (above one is from the team project) everything is running fine and no error message appeared.

Tried latest update of ChromeDriver on NUGet package installed. And just in case requested Chrome Browser version 97

What can be the issue if in one solution it is working in another I have this error message?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
mel-cyber
  • 11
  • 1

1 Answers1

0

This error message...

System.InvalidOperationException: session is not created: This version of ChromeDriver only supports Chrome versione 97. Current Browser version is 100.0.4896.88

...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=97.0
  • Release Notes of ChromeDriver v97.0 clearly mentions the following :

Supports Chrome version 97

  • But you are using chrome=100.0.4896.88
  • Release Notes of chromedriver=100.0 clearly mentions the following :

Supports Chrome version 100

So there is a clear mismatch between chromedriver=97.0 and the chrome=100.0.4896.88


Solution

Ensure that:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • Thank you! Yes, I understand mismatch here, but in NuGet Packager manager Selenium.Webdriver.ChromeDriver is up to date and installed version is latest stable 100.0.4896.6000, but after run it says it supports only Chrome version 97. So that’s why litlle bit confused:( – mel-cyber Apr 27 '22 at 15:25
  • Not a NuGet package expert. But from Selenium perspective I have explained the issue and suggested the solution. – undetected Selenium Apr 27 '22 at 17:02