-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[py][bidi]: add set_timezone_override command in emulation
#16500
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
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||
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.
LGTM!
User description
🔗 Related Issues
💥 What does this PR do?
Adds support for the
set_timezone_overridecommand from the emulation module - https://w3c.github.io/webdriver-bidi/#command-emulation-setTimezoneOverride🔧 Implementation Notes
Usage:
Using IANA Time Zones {AREA}/{LOCATION}:
Using Offset:
Use
Noneto clear/reset the timezone override:💡 Additional Considerations
When setting timezone using offset in Firefox, it returns UTC as timezone instead of the set timezone. So, I have marked the corresponding test as xfail.
🔄 Types of changes
PR Type
Enhancement
Description
Adds
set_timezone_overridecommand to emulation moduleSupports IANA timezone names and offset strings
Allows clearing timezone override by setting to None
Includes comprehensive tests for contexts and user contexts
Diagram Walkthrough
File Walkthrough
emulation.py
Implement set_timezone_override emulation commandpy/selenium/webdriver/common/bidi/emulation.py
set_timezone_overridemethod to Emulation classprovided
bidi_emulation_tests.py
Add timezone override tests and helper functionspy/test/selenium/webdriver/common/bidi_emulation_tests.py
xfail marker