How to update chrome driver in selenide using Java

361 Views Asked by At

I am newbie to the selenium and also to Java. There is existing codebase using selenide 5.16.2

The issue I am facing is,

org.openqa.selenium.SessionNotCreatedException: session not created:
 This version of ChromeDriver only supports Chrome version 114 
Current browser version is 117.0.5938.92 with binary path C:\Program
 Files\Google\Chrome\Application\chrome.exe.

In my windows system, I am currently having chrome 117 installed. I am not sure how I can update the chrome driver version as whatever online references I checked, I could not find a way.

So it will be really helpful if I get some hints. Thanks!

2

There are 2 best solutions below

0
Martin Höller On

You should't need to download or install anything manually. Selenide up to 6.16 used WebDriverManager to automatically download and setup a suitable driver for you. As mentioned in its blog, starting with version 6.17.0 selenide uses SeleniumManager instead, which also manages drivers automatically for you.

Maybe just try to update Selenide to a more recent version.

0
Dmitry Polischuk On

You have message, why you got this problem. ("This version of ChromeDriver only supports Chrome version 114").

"5.16.2" version from 2020 year :)

Install in your maven or gradle project file (it depends) 6.19.1 for Selenide and I think your problem will be solved.

Or install lower than 114 Chrome version.