serenity-bdd / serenity-core

Serenity BDD is a test automation library designed to make writing automated acceptance tests easier, and more fun.
http://serenity-bdd.info
Other
721 stars 517 forks source link

Serenity BDD -Chrome browser is not getting launched #3329

Open ravibabu1408 opened 11 months ago

ravibabu1408 commented 11 months ago

Below error is displayed while launching chrome browser in serenity bdd

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not creat ed: This version of ChromeDriver only supports Chrome version 114 Current browser version is 119.0.6045.124 with binary path C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

I have downloaded latest chromedriver but still this error is occured. Can anyone please help how to fix it?

wakaleo commented 11 months ago

Use the latest version of Serenity/Selenium and make sure there are no old chromedriver binaries on your path.

murkl commented 11 months ago

In this file from webdrivermanager, the latest version is 114: https://github.com/bonigarcia/webdrivermanager/blob/master/src/main/resources/versions.properties

Maybe related to this? When using 119 i got the error: chromedriver cannot be initiated

wakaleo commented 11 months ago

We no longer use WebDriver. Make sure you have the latest versions of Serenity and Selenium will download the correct driver for you.

murkl commented 11 months ago

Oh, I didnt know. Great to hear. Thanks

jurec72 commented 11 months ago

I think something wrong in Serenity version 4.0.21, because when I use this version my latest chrome 119.0.6045.160 is not opened and get error: net.thucydides.core.webdriver.DriverConfigurationError: Could not instantiate class org.openqa.selenium.chrome.ChromeDriver If use Serenity version 4.0.19 then no issue and same Chrome is working fine!

sandeepraina-lenze commented 11 months ago

I can also confirm that Serenity version 4.0.21 is failing to launch the Chrome browser

wakaleo commented 11 months ago

See fixes above. This is an environment/configuration issue, not a Serenity issue

tarun04sharma commented 8 months ago

hi I have similar issue with chrome 121 Error Could not instantiate new WebDriver instance of type class org.openqa.selenium.chrome.ChromeDriver (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 121.0.6167.184

Using serenity 3.2.1</serenity.version>

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

Any solutions ? @ravibabu1408