0

A window appears after launch and immediately disappears, I can not understand what's wrong. Google except for the latest version, selenium is also set to the LATEST parameter (nothing changes with a specific version).

Error:

org.openqa.selenium.SessionNotCreatedException: Message:  Could not start a new session. Response code 500. Message: session not created

Code:

code

Error: Error

undetected Selenium
  • 151,581
  • 34
  • 225
  • 281
Dmitriy N
  • 1
  • 1

3 Answers3

0

Update your chromedriver version, it seems your your browser and browser current driver version aren't same.

https://chromedriver.storage.googleapis.com/index.html?
Akzy
  • 579
  • 2
  • 12
  • I downloaded the latest version namely 100.0.4896.20, need some other one? – Dmitriy N Mar 22 '22 at 16:53
  • I installed it before the last one and now it loads the site, but everything automatically closes automatically now exitcode 0 instead of 1 – Dmitriy N Mar 22 '22 at 17:04
  • ChromeDriver was started successfully. мар 22, 2022 7:09:35 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: W3C мар 22, 2022 7:09:35 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch WARNING: Unable to find an exact match for CDP version 99, so returning the closest version found: 97 мар 22, 2022 7:09:35 PM org.openqa.selenium.devtools.CdpVersionFinder findNearestMatch INFO: Found CDP implementation for version 99 of 97 Process finished with exit code 0 – Dmitriy N Mar 22 '22 at 17:10
  • download 97 again does not work immediately as it was in the beginning – Dmitriy N Mar 22 '22 at 17:14
0

This error message...

org.openqa.selenium.SessionNotCreatedException: Message:  Could not start a new session. Response code 500. Message: session not created:
.
Driver info: org.openqa.selenium.chrome.ChromeDriver

...implies that the ChromeDriver was unable to initiate/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 chrome=99.0
  • Release Notes of ChromeDriver v99.0 clearly mentions the following :

Supports Chrome version 99

  • But your chromedriver version is not getting detected.

Driver info: org.openqa.selenium.chrome.ChromeDriver

  • Your JDK version 1.8.0_281 is also old and ancient.

So most possibly there is a mismatch between jdk version, chromedriver version and the chrome=99.0


Solution

Ensure that:

undetected Selenium
  • 151,581
  • 34
  • 225
  • 281
0

In short, you need to install the previous version of the web driver with such a problem

Dmitriy N
  • 1
  • 1