-
-
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
Created Method to return Keys.CONTROL or Keys.COMMAND based on User OS #15026
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
What about remote webdriver? |
We're discussing that on slack right now - short answer is that we haven't found a convenient solution for that. We're not sure if Playwright's implementation ControlOrMeta works on remote drivers either. |
User description
Description
Created Method to return Keys.CONTROL or Keys.COMMAND based on User OS
Added test to typing_tests.py
Motivation and Context
Issue #14835
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Added
ctrl_or_command
method to return OS-specific key.Enhanced
Keys
class with platform-aware functionality.Introduced a test for
ctrl_or_command
intyping_tests.py
.Ensured compatibility with Mac, Linux, and Windows platforms.
Changes walkthrough 📝
keys.py
Introduced `ctrl_or_command` method in `Keys` class
py/selenium/webdriver/common/keys.py
ctrl_or_command
method to return OS-specific key.sys
module for platform detection.Keys
class functionality with platform-aware logic.typing_tests.py
Added test for `ctrl_or_command` method
py/test/selenium/webdriver/common/typing_tests.py
ctrl_or_command
method functionality.keyReporter
element.