-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[🐛 Bug]: Response code 500 SessionNotCreatedException starting with chrome 131.0.6741.0 on windows only #15332
Comments
@zefkide, thank you for creating this issue. We will troubleshoot it as soon as we can. Info for maintainersTriage this issue by using labels.
If information is missing, add a helpful comment and then
If the issue is a question, add the
If the issue is valid but there is no time to troubleshoot it, consider adding the
If the issue requires changes or fixes from an external project (e.g., ChromeDriver, GeckoDriver, MSEdgeDriver, W3C),
add the applicable
After troubleshooting the issue, please add the Thank you! |
Same issue with antivirus disabled, so is no AV related |
This is likely a bug in Chromedriver or Chrome and not something Selenium can fix. That exception is thrown when an error is returned by chromedriver. |
In this way selenium become potentialy incompatible with chrome on windows starting with the version 131.0.6741.0. I will try to check if the same results are obtained without the grid infrastructure in order to simplify the way this issue can be reproduced. |
@zefkide simple reproduction steps would be helpful. Also try to reproduce it on the latest version of chromedriver and Chrome (currently 133 I think). If it persists, report it to the chromedriver maintainers: I am going to close this issue since I don't think there is any action for Selenium devs to take. Feel free to re-open it or submit a new one with reproduction steps if that's not the case. |
Just for information the issue was posted on chromium support board here along with all the steps to reproduce and without using selenium grid infrastructure. The issue was paired with some other related error that I was able to found in our logs : "Invalid session Id" and browser closed. |
Hello, |
I disagree with that analysis. Your repro case essentially just instantiates Can you try to launch Chrome without selenium on this system and see what happens? I will re-open this for now, but I don't see how we can fix anything based on info provided. Also, please add your original repro code to this issue. |
Hello, |
Since it happens in both Java and Python, and only with newer versions of ChromeDriver/Chrome, that makes me more convinced it's a Chrome or Chromedriver issue. I have no idea how to proceed or what to fix in selenium based on the info you provided. I'll leave this issue open for now in case someone else has an idea. |
Also, can you provide a short self-contained code sample that reproduces this, just so we have it recorded in this issue? |
In java (17.x) on windows machine x64:
if you will run the command : java -jar myTestApp.jar 40 50 if you will run the command : java -jar myTestApp.jar 41 50
|
Is anyone able to confirm that at list this issue exist ? |
What happened?
Hello,
We are running selenium 4 grid (hub + nodes) in a following configuration :
We are constraint to upgrade every few months all our browsers (chrome and edge). Running tests against chrome 132 and 133 results in failures of 10 to 30% only on windows node machines not on linux ones.
So we have tested the same basic test in a row of 250 to 500 times in order to identify the version with issues. The test consists in getting a page on a local website and find an webelement id in that page. Since the error is present on all windows machines the grid was configured for the test with only one node Windows Server 2022. We have starting with version 114 of chrome and going up to version 131. All the tests were executed with the exactly the same version of browser and driver. The first failure happened with the latest version of 131 (131.0.6778.264), so we have drilled down into the minor versions of 131. The first version that failed was 131.0.6741.0 (for both chrome and chromedriver) so we have crosschecked between chrome 131.0.6741.0 and chrome 131.0.6740.0 :
chrome 131.0.6741.0 + chromedriver 131.0.6740.0 : ko in the first 20 runs
chrome 131.0.6740.0 + chromedriver 131.0.6741.0 : ok for 500 tests in a row
So it seems that chrome 131.0.6741.0 is responsible for the issue or maybe selenium is not properly handling the chrome via chromedriver starting with this particular version.
Some help will be appreciated to unblock this situation :)
How can we reproduce the issue?
Relevant log output
Operating System
HUB on RedHat9, node on Windows Server 2022 Datacenter Edition
Selenium version
4.29.0
What are the browser(s) and version(s) where you see this issue?
chrome starting with version chrome 131.0.6741.0
What are the browser driver(s) and version(s) where you see this issue?
chromedriver 131.latest is working fine
Are you using Selenium Grid?
Grid 4.29.0
The text was updated successfully, but these errors were encountered: