fixing mypy error from #15693#15705
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
|
||||||||||||||||||
cgoldberg
left a comment
There was a problem hiding this comment.
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_idfrom driver withinWebElementfor cases whenWebElementis used to createWebDriverWaitinstances.🔧 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_idproperty onWebElementfor better compatibilityUpdates
WebElement.__repr__to use the newsession_idpropertyAdds type annotation to ignored exceptions in
WebDriverWaitAdds return type annotation to
WebDriverWait.__repr__Changes walkthrough 📝
webelement.py
Add session_id property and update __repr__ in WebElementpy/selenium/webdriver/remote/webelement.py
session_idproperty toWebElement__repr__to use the new propertywait.py
Add type annotations in WebDriverWaitpy/selenium/webdriver/support/wait.py
__repr__