0

I am facing the below error on Jenkins scheduled execution. The execution was successfully done when I executed myself but when I set the schedule execution it show me the error.

Here the Image of the Error Message:

Error Message Image

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
ben ben
  • 5
  • 3
  • The error is crystal clear `...this version of chromedriver only supports chrome version 115 Current browser version is 114...` – pburgr Jul 19 '23 at 08:10

1 Answers1

0

This error message...

115

...implies that SessionNotCreatedException was raised as ChromeDriver was unable to spawn a new browsing context i.e. session.

Your main issue is the incompatibility between the version of the binaries you are using as follows:

  • You are using chromedriver=115.0
  • Where as you are using chrome=114.0.5735.201

So there is a clear mismatch between the major version of chromedriver=115.0 and the chrome=114.0.5735.201


Solution

Ensure that ChromeDriver is downgraded to ChromeDriver v114.0 level to match the chrome=114.0.5735.201 and execute your test.


Further, if you are using Selenium v4.6 or above you don't have to explicitly use ChromeDriverManager().install() anymore as Selenium Manager can silently download the matching ChromeDriver and your minimal code block can be:

from selenium import webdriver

Option = webdriver.ChromeOptions()
options.add_argument("--start-maximized")
driver = webdriver.Chrome(options=Option)
driver.get("https://google.com/")
undetected Selenium
  • 183,867
  • 41
  • 278
  • 352