I am using Jenkins to run testng xml. When I build the job, I get the error message as below in the screenshot.
I have used latest Selenium Java dependency where browser is automatically detected and launch. Same scripts are executable through terminal and eclipse.
Kindly reply if anyone is having solution for this problem
Did you happen to read that entire message? I would direct your attention to lines 2-3
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 120.0.6099.224 with binary path /usr/bin/google-chrome
It is pretty clear here why your task is failing.
my current browser version is 120.0.6099.224, Also replaced the driver in /usr/bin/google-chrome with the latest ones.
And did that work for you?