-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
fixing mypy error from #15693 #15705
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
Conversation
Thank you, @bandophahita for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Reviewer Guide 🔍(Review updated until commit 9126095)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 9126095
Previous suggestionsSuggestions up to commit 9126095
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks very much for the contribution... I'm merging it now!
btw, how do you not get banned for having 2 GH accounts? I'm so confused :)
personal and work accounts. |
User description
🔗 Related Issues
Fixes #15693
And partly addresses #15697
💥 What does this PR do?
Exposes
session_id
from driver withinWebElement
for cases whenWebElement
is used to createWebDriverWait
instances.🔧 Implementation Notes
This seemed like the least intrusive way to avoid attribute error when accessing
WebDriverWait.__repr__
.💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix, Enhancement
Description
Exposes
session_id
property onWebElement
for better compatibilityUpdates
WebElement.__repr__
to use the newsession_id
propertyAdds type annotation to ignored exceptions in
WebDriverWait
Adds return type annotation to
WebDriverWait.__repr__
Changes walkthrough 📝
webelement.py
Add session_id property and update __repr__ in WebElement
py/selenium/webdriver/remote/webelement.py
session_id
property toWebElement
__repr__
to use the new propertywait.py
Add type annotations in WebDriverWait
py/selenium/webdriver/support/wait.py
__repr__