Closed smilinrobin closed 6 days ago
@smilinrobin, thank you for creating this issue. We will troubleshoot it as soon as we can.
Triage this issue by using labels.
If information is missing, add a helpful comment and then I-issue-template
label.
If the issue is a question, add the I-question
label.
If the issue is valid but there is no time to troubleshoot it, consider adding the help wanted
label.
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable G-*
label, and it will provide the correct link and auto-close the
issue.
After troubleshooting the issue, please add the R-awaiting answer
label.
Thank you!
@smilinrobin - What happens when you get rid of this below line from your code and try again ?
System.setProperty("webdriver.chrome.driver", "chromedriver.exe");
Selenium internally uses the selenium manager to manager the correct version of the driver binaries that should be used for a given browser. So you don't need to be explicitly setting this up.
Sure @krmahadevan . Will check and revert..
You would also need to opt in to that behavior with --selenium-manager true
yeah, this needs to be the full path to the driver: System.setProperty("webdriver.chrome.driver", "chromedriver.exe")
So, opting in to use selenium manager with detect drivers would fix it as well.
What happened?
We are trying to run a simple script as attached and getting org.openqa.selenium.SessionNotCreatedException: Could not start a new session exception. The same script is working fine locally, but fails consistently on the Windows server 2022. Logs, environment details attached below:
![image](https://github.com/SeleniumHQ/selenium/assets/7482112/63ee72de-0166-4e14-82ee-0dfd88c813c5)
How can we reproduce the issue?
Kindly run the GoogleSearch file with Selenium Java 4.20.0 on a Windows server 2022 edition. Reference here :
Relevant log output
Operating System
Microsoft Windows Server Version 21H2 (OS Build 20348.2402)
Selenium version
selenium-java-4.20.0
What are the browser(s) and version(s) where you see this issue?
Chrome
What are the browser driver(s) and version(s) where you see this issue?
ChromeDriver 125.0.6422.60
Are you using Selenium Grid?
No response