-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[py]: #11093 - The SessionId shouldn't be added to params themself bu… #11121
Conversation
…hemself but to a copy of them.
ah, nice solution. Can you add a unit test? |
Hi |
Ok, my install of bazel was broken. |
…nt options after a page is printed.
…d test to comply with coding conventions.
Codecov ReportBase: 52.67% // Head: 52.67% // No change to project coverage 👍
Additional details and impacted files@@ Coverage Diff @@
## trunk #11121 +/- ##
=======================================
Coverage 52.67% 52.67%
=======================================
Files 82 82
Lines 5542 5542
Branches 198 198
=======================================
Hits 2919 2919
Misses 2425 2425
Partials 198 198
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
thanks! |
…hemself bu… (SeleniumHQ#11121) * [py]: SeleniumHQ#11093 - The SessionId shouldn't be added to params themself but to a copy of them. * [py] Add an unit test to check the session id is not preserved in print options after a page is printed. * [py] Update the test_session_id_is_not_preserved_after_page_is_printed test to comply with coding conventions.
…t to a copy of them.
Description
The Webdriver.execute() method shouldn't add the SessionId to its params themself but to a copy of them.
This avoid the SessionId to be preserved in the PrintOptions instance.
Motivation and Context
If the session id is stored inside the PrintOptions instance, a selenium.common.exceptions.InvalidSessionIdException is raised when the PrintOptions instance is reused in a subsequent session.
Types of changes
Checklist