-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[🐛 Bug]: WebDriver loses connection to grid/times out after file download in chrome #11838 #13605 #14894
Comments
@mprataps-tibco, 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! |
Can you first confirm the issue happens in the latest versions of Selenium? We don't troubleshoot old versions. |
We have tried the selenium version 4.16.1 as well and we are facing the same issue there as well. It is intermittent issue and affects 1-2% test cases. But as the number of test cases are allot, we are affected by this in every run. |
Latest version of Selenium is 4.27.0 https://github.com/SeleniumHQ/selenium/releases/tag/selenium-4.27.0. I will be happy to look into it once you confirm the issue persists with latest Selenium version. Are you facing the same error is the latest version of Chrome too or only mentioned specific versions of Chrome? |
We require some time to upgrade it to latest version i.e. 4.27.0 as it includes infrastructure side changes as well. Will update it in few days. |
What happened?
After migrating from selenium 3 to selenium 4 (4.8.1 & 4.16.1) we have an issue that heavily impacts our automation runs. Since we have thousand of tests, we are hitting this issue quite regularly. Issue is relevant only when running on remote grid.
It seem to happen when there is file download happening in browser, in Chrome it leads to Chrome Download page to open and then close again. Most of the times it just works, however sometimes when trying to get webDriver.getWindowHandles() or get alert or some other operations (we hit it most often with webDriver.getWindowHandles()) - there is timeout happening.
I created simple test that reproduces the issue (you may need to run it several times, even though there is a counter to run test 100 times).
The only dependencies required for the test are:
Grid run using docker images: selenium/hub:4.8.0-20230123/selenium/node-chrome:4.8.0-20230123
docker run -d -p 4442-4444:4442-4444 --net grid --name selenium-hub480 selenium/hub:4.8.0-20230123
docker run -d --net grid -e SE_EVENT_BUS_HOST=selenium-hub480 -e SE_NODE_GRID_URL=http://localhost:4444/ --shm-size="2g" -e SE_EVENT_BUS_PUBLISH_PORT=4442 -e SE_EVENT_BUS_SUBSCRIBE_PORT=4443 -e GEOMETRY=1680x1050x24 -e SCREEN_WIDTH=1680 -e SCREEN_HEIGHT=1050 -e SE_ENABLE_TRACING=false -P selenium/node-chrome:4.8.0-20230123
We also tried the recommendation https://www.selenium.dev/documentation/grid/configuration/cli_options/#enabling-managed-downloads-by-the-node provided #13605 (comment) .
How can we reproduce the issue?
Relevant log output
Operating System
MacOS / Windows 11
Selenium version
selenium-java 4.8.1 , selenium-java 4.16.1
What are the browser(s) and version(s) where you see this issue?
Chrome 109.0.5414.74 , Chrome 120.0.6099.109
What are the browser driver(s) and version(s) where you see this issue?
chromedriverVersion: 109.0.5414.74 ,chromedriverVersion: 120.0.6099.109
Are you using Selenium Grid?
4.8.0-20230123 , 4.16.1
The text was updated successfully, but these errors were encountered: