-
Notifications
You must be signed in to change notification settings - Fork 32
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
Prevent close of Bidi tab when calling closeWindow
classic
#2965
Comments
I think it is a bug in ChromeDriver (possible a regression). I do not think the window with the bidi tab should be observable. |
@sadym-chromium PTAL |
Closing last tab should close the session and the browser, and I believe it's the way ChromeDriver works in pure classic mode as well. From your perspective, what is the expected behavior after the last tab is closed? Please note that Mapper tab is transparent for the protocol. |
I actually learned that the session is being closed when all windows are being closed. Now this all makes sense as I tried to call Honestly I would have expected that the session remains open and I can open a new tab to continue while other commands that require a window would fail. Closing the session should only happen via the I am sure there is a good reason to also just close the issue. Feel free to close the issue as it works as defined in the spec. Thanks for your input! |
Looks like I misunderstood the original issue, the WebDriver spec indeed says that the session must end if no more top-level browsing contexts remain open according to https://w3c.github.io/webdriver/#close-window (in that sense the bidi tab is not observable as it does not prevent ending the session). |
If some calls the WebDriver classic command closeWindow it will close the whole window including the Bidi tab which makes it impossible (from a framework perspective like WebdriverIO) to re-act on it and open a new window.
What are your recommendations here or would you consider this a bug in Chromedriver?
The text was updated successfully, but these errors were encountered: