rosolko/WebDriverManager.Net

This version of ChromeDriver only supports Chrome version 114

ShilpaLokhande-CitiusTech opened this issue · 8 comments

I am getting below mentioned error :

System.Exception : System.Exception::: System.IO.InvalidDataException ::: Unable to initialize driver for 'chrome' webbrowser! session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.111 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated) - Error occurred while trying to launch 'chrome'.
TearDown : System.Exception : System.NullReferenceException::: Object reference not set to an instance of an object. - Exception occurred while trying to take the screen-shot.

Line of code for which this error pops-up:
new WebDriverManager.DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.Latest);

ms6073 commented

I am getting below mentioned error :

System.Exception : System.Exception::: System.IO.InvalidDataException ::: Unable to initialize driver for 'chrome' webbrowser! session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 116.0.5845.111 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe (SessionNotCreated) - Error occurred while trying to launch 'chrome'. TearDown : System.Exception : System.NullReferenceException::: Object reference not set to an instance of an object. - Exception occurred while trying to take the screen-shot.

Line of code for which this error pops-up: new WebDriverManager.DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.Latest);

Are you using the latest 2.17.1? Are you calling the SetUpDriver method with the default VersionResolveStrategy.Latest? If so, I would suggest trying it with VersionResolveStrategy.MatcingBrowser.

I am having the same issue. The latest version of WebDriverManager (2.17.1) is not working for me with Chrome 116.

Try updating Selenium.WebDriver dependency to 4.11.0. It worked for me

with latest version of both webdrivermanager 2.17.1 and webdriver version of 4.12.2 I am getting the same error
Can you please provide a solution for this

ms6073 commented

image https://googlechromelabs.github.io/chrome-for-testing/#stable Need to use a new link Please, fix it

Pretty sure that as of 2.17, the logic has been updated to use the new chrome-for-testing end point(s). Take a look at
ChromeForTestingClient.cs in the DriverManger folder.

I am having the same issue on version 2.17.1 and chrome v116.0.5845.180. Here is the line that causes the exception
new DriverManager().SetUpDriver(new ChromeConfig(), VersionResolveStrategy.MatchingBrowser);
and also alternatively
new DriverManager().SetUpDriver(new ChromeConfig());
The exception is "An error occurred while sending the request"

I have managed to resolve this by using selenium manager (by Selenium) instead of webdrivermanager