-1

I'm getting this error executing Selenium Java tests:

July 11, 2023 6:53:35 PM org.openqa.selenium.remote.service.DriverService$Builder getLogOutput
INFO: Driver logs no longer sent to console by default; https://www.selenium.dev/documentation/webdriver/drivers/service/#setting-log-output
SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.
Exception in thread "main" org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 500. Message: session not created: This version of ChromeDriver only supports Chrome version 93
Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe 

i used other chrome drivers and it didnt work can anyone help?

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
sami
  • 1

2 Answers2

0

The Answer already seems to be there in the logs.

This version of ChromeDriver only supports Chrome version 93 Current browser version is 114.0.5735.199 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe

Download the latest chromedriver which supports the Chrome Browser version 114

goofyd
  • 1
  • 1
0

Update Selenium version to 4.6 or above. Selenium Manager would automatically take care of downloading the matching version of ChromeDriver to execute the tests.

So your minimum code block will be:

ChromeOptions options = new ChromeOptions();
options.addArguments("--start-maximized");
WebDriver driver = new ChromeDriver(options);
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352