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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐛 Bug]: execution got stuck for hours Thread [Forwarding getWindowHandles on session d2bae387ae17d6ad28e3c0f2ca3f9035 to remote] (Stepping) #14422

Closed
avishekhece opened this issue Aug 22, 2024 · 2 comments
Labels
I-question Applied to questions. Issues should be closed and send the user to community resources.

Comments

@avishekhece
Copy link

What happened?

In a new window, there's an alert and if I do anything on the parent window then the new window will close immediately, so to counter this, I tried to switch to its default content frame then tried to switch to the new window and I am getting two windows but not able to switch it. It is getting stuck for hours in the below line bold line.

@SuppressWarnings({"unchecked"})
public Set getWindowHandles() {
Response response = execute(DriverCommand.GET_WINDOW_HANDLES);
Object value = response.getValue();
try {
List returnedValues = (List) value;
return new LinkedHashSet<>(returnedValues);
} catch (ClassCastException ex) {
throw new WebDriverException(
"Returned value cannot be converted to List: " + value, ex);
}
}

How can we reproduce the issue?

In a new popup window where only an alert is present and this window is continuously loading with the alert and if we perform any action like click or manual interference on the execution window then the new window will close.

Relevant log output

Sometimes I am getting this in the logs and sometimes it is just processing for hours :



org.openqa.selenium.UnhandledAlertException: unexpected alert open: {Alert text : All Case Statistics Report generation has started. Mail will be sent once completed !!!}
  (Session info: MicrosoftEdge=127.0.2651.105): All Case Statistics Report generation has started. Mail will be sent once completed !!!
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'
System info: host: 'SGSLP144', ip: '192.168.0.129', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_202'
Driver info: org.openqa.selenium.edge.EdgeDriver
Capabilities {acceptInsecureCerts: true, browserName: MicrosoftEdge, browserVersion: 127.0.2651.105, fedcm:accounts: true, javascriptEnabled: true, ms:edgeOptions: {debuggerAddress: localhost:64665}, msedge: {msedgedriverVersion: 127.0.2651.105 (e2354f41f84..., userDataDir: C:\Users\SGSLP144\AppData\L...}, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: WINDOWS, platformName: WINDOWS, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Session ID: 7abed2704e719685db61a5cc79c74092

Operating System

Win:11

Selenium version

JAVA:1.8

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

Edge

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

edge

Are you using Selenium Grid?

no

Copy link

@avishekhece, 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!

@diemol diemol added I-question Applied to questions. Issues should be closed and send the user to community resources. and removed I-defect needs-triaging labels Aug 22, 2024
Copy link

💬 Please ask questions at:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-question Applied to questions. Issues should be closed and send the user to community resources.
Projects
None yet
Development

No branches or pull requests

2 participants