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

ORG.OPENQA.Selenium.SessionNotcreateDexception: Could Not Start a New Session. Response Code 500. Message: Session Not Created: This Version of Chromedriver On Ly Supports Chrome Version 112 Reason: Browser and browser -driven version do not correspond to: 1. Uninstall the
1689659842495.png
1689660367583.png
original browser
and
reinstall a browser that is consistent with the driver.
Google Chrome download address: https://chrome.ywswge.cn/ , find the version corresponding to the driver, for example, mine is 112
2. Replace the browser driver with the version consistent with the browser.
Google Chrome download address: https://chromedriver.chromium.org/downloads , find the version corresponding to the driver, download the corresponding win_32.zip,
decompress the downloaded driver compression package, and put the downloaded chromedriver.exe under the java system environment variable (bin directory of jdk)
** For example, mine is: **D:\java\jdk1.8.0\bin
image.png
The problem is solved.

Guess you like

Origin blog.csdn.net/qq_53869058/article/details/131786592