2

I got the below error when running selenium in Chrome version 123.0.6312.59 :

Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 114

The current Chrome browser version is 123.0.6312.59

below are my selenium and web driver manager decencies :

<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.11.0</version>
<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.4.1</version>

my expectation should be Chrome launch using the latest Chrome version

2
  • Try updating selenium version to 4.18.1 and WDM to 5.7.0 Commented Mar 25, 2024 at 9:23
  • Hi Shawn, Thanks for replying my issue and yes issue has been fixed after update the selenium and wdw. Commented Mar 25, 2024 at 10:04

4 Answers 4

0

https://googlechromelabs.github.io/chrome-for-testing/

Chrome labs has several versions of Chromedriver for the newest Chrome browser update.

  1. Find out your OS.
  2. Download the appropriate zip folder for your OS.
  3. Replace the executable where ever you store the old executable for Chromedriver.

You should be good to go from there!

I ran into the same issue after the newest update.

Sign up to request clarification or add additional context in comments.

Comments

0

The below dependency is not required while using Chrome versions grater than 122 onwards. Remove this, it should work.

<groupId>io.github.bonigarcia</groupId>
<artifactId>webdrivermanager</artifactId>
<version>5.4.1</version>

Comments

0

Selenium 4 has an alternate (Selenium Manager) to WebDriver Manager of Boni Garcia which was used to instantiate the browser driver without configuring it using

System.setProperty("webdriver.chrome.driver", "ChromeDriverPath\\chromedriver.exe");// not needed anymore from Selenium 4

Even webdriver manager is not required anymore

WebDriverManager.chromedriver().setup();//Neither this setup is required from Selenium 4

So from Selenium 4 you can directly launch the chrome browser using the below line

WebDriver d = new ChromeDriver();

Comments

0

From Google Chrome v115 onwards, the chromedriver is now available from the new Chrome for Testing JSON endpoints. See the announcement here: ChromeDriver - Version Selection

Version 5.4.1 of io.github.bonigarcia.WebDriverManager does not cater for that new endpoint, so provides the project with the latest chromedriver from the old repository (hence version 114)

WebDriverManager catered for this change from version 5.5.0 (latest version at time of publishing this answer is 5.8.0) - see here:

Update the dependency in the pom.xml:

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

1 Comment

I posted this answer previously here: stackoverflow.com/a/76998277/11543023

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.