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

updated Chrome version 114 to 116 #123

Open
JRafacand opened this issue Aug 24, 2023 · 1 comment
Open

updated Chrome version 114 to 116 #123

JRafacand opened this issue Aug 24, 2023 · 1 comment

Comments

@JRafacand
Copy link

Hi, testers! I updated Chrome version 114 to 116. My test didn`t open. It showed the following message:
net.thucydides.core.webdriver.DriverConfigurationError: WebDriver was unable to create a new instance of type class org.openqa.selenium.chrome.ChromeDriver
WebDriver reported the following message: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114
Current browser version is 116.0.5845.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

My serenity properties are configurated like this
webdriver.driver=chrome
webdriver.autodownload=true

Did somebody resolve this problem?

@jimmykemp
Copy link

jimmykemp commented Aug 31, 2023

There are a couple of options you can try.

The issue is related to the dependency on 'webdrivermanager', though 'webdrivermanager' is not the issue. The issue you describe has been resolved in v5.50 (for JDK8) and later versions (JDK11) of 'webdrivermanager'. Scan the issues at https://github.com/bonigarcia/webdrivermanager/issues (open and closed), to get an idea of the problem. Long story short, the urls to download the drivers moved from v116 of chrome.

Option 1.
In your pom.xml add a dependency to webdrivermanager. This overrides the current version used by Serenity:

<dependency>
       <groupId>io.github.bonigarcia</groupId>
	<artifactId>webdrivermanager</artifactId>
	<version>5.5.0</version>
</dependency>

In your serenity.conf add:
autodownload = true

In the section:

webdriver {
  driver = chrome
  autodownload = true
  ......
}
  

Option 2. Neither of the updates above are required.
Download the drivers manually (either to the default location of 'wdm.cachePath', or specify a location on the command line using the same property), and set -Dwdm.** properties on the command line for the appropriate binary + driver version (e.g. wdm.chromeDriverVersion / wdm.chromeVersion).

Review the webdrivermanager class > 'io.github.bonigarcia.wdm.config.Config' class for which wdm.** options to use.

Summary:
Both of these options worked for us. There may be other options to try. We used option 2. until v5.5.0 of webdrivermanager was available, then reverted to option 1.

As a quick test to try out both options. Pull down the v3.9.8 version of https://github.com/serenity-bdd/serenity-cucumber-starter.

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

2 participants