-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py] Fix mypy errors in switch_to file and relative locator file #16300
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
base: trunk
Are you sure you want to change the base?
Conversation
Thank you, @pallavigitwork for this code suggestion. The support packages contain example code that many users find helpful, but they do not necessarily represent After reviewing the change, unless it is a critical fix or a feature that is needed for Selenium We actively encourage people to add the wrapper and helper code that makes sense for them to their own frameworks. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨No code suggestions found for the PR. |
User description
🔗 Related Issues
#15697
💥 What does this PR do?
fixes mypy errors in two files
switch_to
and
relative_locator.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Fix mypy type errors in
switch_to.py
andrelative_locator.py
Convert frame reference to string in exception handling
Remove unused import and fix CSS selector string literal
Diagram Walkthrough
File Walkthrough
switch_to.py
Fix type error in exception handling
py/selenium/webdriver/remote/switch_to.py
frame_reference
to string when raisingNoSuchFrameException
relative_locator.py
Clean up imports and fix selector reference
py/selenium/webdriver/support/relative_locator.py
By
importBy.CSS_SELECTOR
with string literal "css selector"