Fix the problem that it closes all tabs when using webdriver.close() to close the current tab in Edge IE Mode.#9998
Conversation
Fix the problem that it closes all tabs when using webdriver.close() to close the current tab in Edge IE Mode.
|
@guangyuexu What would be the implications of this change after merging your pending PR? |
|
I see the CloseWindowCommandHandler and the QuitCommandHandler both use Browser::Close, and the key difference is that QuitCommandHandler iterates through all managed Browsers instead of just one. In IE Mode, this will correctly terminate all of the underlying IE processes, but for the Quit command we should still make sure the parent Edge process is cleaned up to. I'd recommend keeping the |
|
@bwalderman Noted. I'll merge this one, and move the |
|
@yk9772 Thank you for your contribution! |
|
Kudos, SonarCloud Quality Gate passed! |
Fix the problem that it closes all tabs when using webdriver.close() to close the current tab in Edge IE Mode. Signed-off by: jimevans <james.h.evans.jr@gmail.com>








Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Let it go the same way in Edge IE Mode as in IE when closing the current tab(window).
Motivation and Context
To solve the problem that it closes all active tabs(windows) when using webdriver.close() to close the current tab(window) in Edge IE Mode.
Types of changes
Checklist