-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[dotnet] use correct devtools session id after reinitialization #13768
[dotnet] use correct devtools session id after reinitialization #13768
Conversation
PR Description updated to latest commit (bacefcc)
|
PR Review
✨ Review tool usage guide:Overview: The tool can be triggered automatically every time a new PR is opened, or can be invoked manually by commenting on any PR.
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
See the improve usage page for a comprehensive guide on using this tool. |
bacefcc
to
e306d50
Compare
Fix regression issue, appeared in v4.17. Closing a tab breaks the devtools session Fixes SeleniumHQ#13755
e306d50
to
c23158c
Compare
CI failure is not related to the changes in this PR, merging it. Thanks @schrufygroovy for your contribution! |
@schrufygroovy Could you please sign the contributor license agreement via https://cla-assistant.io/SeleniumHQ/selenium?pullRequest=13768? |
done |
User description
Description
After reinitialization of the dev tools session, that new active session id should be used.
Motivation and Context
Fixes regression issue: #13755
Types of changes
PLEASE double check: in case a
sessionId
is provided toSendCommand()
I removed the check ifattachedTargetId == null
and the reinitialization of the session. My assumption was in case thesessionId
is given, we don't need a session re-initialization.Checklist
Type
bug_fix, tests
Description
Changes walkthrough
DevToolsSession.cs
Improve DevTools Session Management in Selenium WebDriver
dotnet/src/webdriver/DevTools/DevToolsSession.cs
SendCommand
to reattach session ifattachedTargetId
is nullbefore sending a command.
SendCommand
.DevToolsTabsTest.cs
Add Test for Verifying DevTools Session After Closing Tab
dotnet/test/common/DevTools/DevToolsTabsTest.cs
ClosingTabDoesNotBreakDevToolsSession
to verifyDevTools session remains active after closing a tab.