3

I have this error:

session not created: This version of ChromeDriver only supports Chrome version 98
Current browser version is 100.0.4896.75 

I have allready manually downloaded the correct chrome driver and inserted it into the project debug folder. But each time I debug it override the new chrome driver with version 100 and insert back the chrome driver with version 98.

How can i avoid this?

What i need to do, that the chrome driver in the folder stay on version 100 and get not overriden by starting debugging.

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
CMAN
  • 33
  • 3
  • The version of the ChromeDriver you use has to match the version of Chrome installed on the machine. You should acquire it from NuGet, rather than manually fiddle with the contents of your bin/Debug folder. One approach to keep them in sync can be to do something like this MSBuild target that downloads the ChromeDriver version for the version of Chrome installed: https://github.com/martincostello/dotnet-core-selenium-tests/blob/88f8be5cb3d09ab6a9f0d75cd17481031acd2313/seleniumtests/seleniumtests.csproj#L19-L92 – Martin Costello Apr 13 '22 at 15:00

1 Answers1

1

This error message...

session not created: This version of ChromeDriver only supports Chrome version 98
Current browser version is 100.0.4896.75 

...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 chrome=100.0
  • But you are using chromedriver=98.0
  • Release Notes of chromedriver=98.0 clearly mentions the following :

Supports Chrome version 98

So there is a clear mismatch between chromedriver=98.0 and the chrome=100.0.4896.75


Solution

Ensure that:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352