Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This version of ChromeDriver only supports Chrome version 114 #263

Closed
ShilpaLokhande-CitiusTech opened this issue Aug 24, 2023 · 8 comments

Comments

@ShilpaLokhande-CitiusTech

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
Copy link

ms6073 commented Aug 25, 2023

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.

@manudh4
Copy link

manudh4 commented Aug 29, 2023

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

@ShilpaLokhande-CitiusTech
Copy link
Author

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

@ultimatet41
Copy link

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

@xrnarayan
Copy link

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
Copy link

ms6073 commented Sep 4, 2023

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.

@YoungerThuggg
Copy link

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"

@xrnarayan
Copy link

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

@rosolko rosolko closed this as completed Sep 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants