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

[馃殌 Feature]: Return window handles on driver.close() #13950

Open
joerg1985 opened this issue May 16, 2024 · 2 comments
Open

[馃殌 Feature]: Return window handles on driver.close() #13950

joerg1985 opened this issue May 16, 2024 · 2 comments

Comments

@joerg1985
Copy link
Member

Feature and motivation

The w3c spec does return the window handles on the close window command.
This is currently not passed to the client by the implementation, i assume because it is a breaking change.

This could get fixed with the release of Selenium 5, this issue is just a reminder to fit it then.

Usage example

When closing a window the next command is to switch to another window.
Therefore it might be helpfull to get all the handles when closing the window.
Or to detect the session has been terminated, because all other windows are closed too.

Copy link

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

@joerg1985
Copy link
Member Author

This is the link to the command in the spec, see the last step regarding returning the handles.
https://w3c.github.io/webdriver/#close-window

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants