Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[馃悰 Bug]: Selenium 4 grid execution shows different user's execution even when clicked using the correct session name #13831

Closed
rummitta opened this issue Apr 17, 2024 · 4 comments

Comments

@rummitta
Copy link

What happened?

Hi Team,
We are using Selenium 4 grid for running our automation tests. Grid version we use is 4.15. We set up the execution session id as a combination of feature file name, scenario name, user name etc - so as to ensure that it is unique. However, when we have many parallel executions, the same selenium node spins up multiple chrome browser tabs (which is fine so that it can support multiple parallel executions). However, when the user clicks on the particular session by checking the correct session name, then the most currently active chrome tab's execution is visible - instead of the tab that the user has initiated. This is causing issues during monitoring of the execution when many executions run in parallel.
Attached is the screenshot of multiple tabs (marked as 1 and 2 in the screenshot) in the same node and also in the same screenshot, the session name is visible.
image
Please suggest how to deal with this issue.

Regards,
Rumki

How can we reproduce the issue?

We can reproduce the issue by running more number of parallel executions than the number of replicas set for that grid.

Relevant log output

No particular log needed because there is no issue during the execution. All executions run fine as expected. The issue is only during monitoring.

Operating System

Selenium 4 Grid is on Linux amd64

Selenium version

Selenium Java 4.6.0 for the code base and Selenium Grid version is 4.15

What are the browser(s) and version(s) where you see this issue?

Client is testing mostly using Chrome browser

What are the browser driver(s) and version(s) where you see this issue?

Chrome Browser and driver version 119

Are you using Selenium Grid?

4.15

Copy link

@rummitta, thank you for creating this issue. We will troubleshoot it as soon as we can.


Info for maintainers

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!

@rummitta
Copy link
Author

Additional Info:
For the grid that we r using, max sessions is 2 and replica is 8. This issue is observed when we trigger more scenarios in parallel - for example, if we trigger 28 scenarios together

@diemol
Copy link
Member

diemol commented Apr 17, 2024

Each Docker container has VNC and noVNC installed so that you can see the Live View. However, the Live View can only show one desktop at a time. If you have more than one browser running on the same container, several browsers will be seen on the same Live View. As you can see at the bottom of the Live View, other browsers are present, and one has the session you are looking for.

The solution for this is to use one container per session.

@diemol diemol closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Copy link

This issue has been automatically locked since there has not been any recent activity since it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked and limited conversation to collaborators May 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants