Language - Java
pom.xml dependencies- bonigarcia 5.4.1
selenium-java-4.10.0
Error:
Caused by: 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 114
Current browser version is 121.0.6167.184 with binary path /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
I ran my tests in the morning, and all was ok. 10 min after -all fails. No changes were made.
Updated version of dependencies to bonigarcia 5.6.3 selenium-java-4.16.1 still same error. Made sure that WEbdriverManager downloaded needed version of Chrome driver properly, and located it successfully. Due to company policies not able to downgrade to lower version of chrome browser. What can be the issue?
I had this issue too. It seems that for some reason it failed to download the correct version of the driver and resolved, wrongly, that the correct version would be 114.0.5735.90.
Solution:
In
/Users/YOUR_USER/.cache/selenium, first delete thechromedriverfolder, then edit the fileresolution.propertiesMine was looking like this:
Change to the latest
chromedriverversion according to: https://googlechromelabs.github.io/chrome-for-testing/It should look like this:
I then retried to run my tests, and the
webdrivermanager now downloads the correct version and uses it for tests.