-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java][BiDi] implement emulation.setScreenOrientationOverride
#16705
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
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 ✨Latest suggestions up to c719c86
Previous suggestions✅ Suggestions up to commit b943316
|
|||||||||||||||||||||||||||||||||||||||||||
java/src/org/openqa/selenium/bidi/emulation/ScreenOrientation.java
Outdated
Show resolved
Hide resolved
java/src/org/openqa/selenium/bidi/emulation/ScreenOrientation.java
Outdated
Show resolved
Hide resolved
java/src/org/openqa/selenium/bidi/emulation/ScreenOrientation.java
Outdated
Show resolved
Hide resolved
|
P.S. Welcome to the club! DOTNET tests are failing, though you only changed Java code. :( |
asolntsev
left a comment
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.
Looks good, thanks!
User description
🔗 Related Issues
💥 What does this PR do?
Implements
emulation.setScreenOrientationOverridefrom W3C spec - https://w3c.github.io/webdriver-bidi/#command-emulation-setScreenOrientationOverride🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Implements
emulation.setScreenOrientationOverrideBiDi commandAdds screen orientation enums and parameter classes
Includes comprehensive tests for context and user context
Supports clearing orientation overrides with null parameter
Diagram Walkthrough
File Walkthrough
Emulation.java
Add setScreenOrientationOverride methodjava/src/org/openqa/selenium/bidi/emulation/Emulation.java
setScreenOrientationOverridemethod to Emulation classSetScreenOrientationOverrideParametersand sends BiDicommand
setUserAgentOverridemethodScreenOrientation.java
Create ScreenOrientation model classjava/src/org/openqa/selenium/bidi/emulation/ScreenOrientation.java
toMap()method for BiDi serializationScreenOrientationNatural.java
Create ScreenOrientationNatural enumjava/src/org/openqa/selenium/bidi/emulation/ScreenOrientationNatural.java
toString()for BiDi protocol serializationScreenOrientationType.java
Create ScreenOrientationType enumjava/src/org/openqa/selenium/bidi/emulation/ScreenOrientationType.java
LANDSCAPE_SECONDARY
toString()for BiDi protocol serializationSetScreenOrientationOverrideParameters.java
Create SetScreenOrientationOverrideParameters classjava/src/org/openqa/selenium/bidi/emulation/SetScreenOrientationOverrideParameters.java
AbstractOverrideParametersScreenOrientationobject in constructorcontexts()anduserContexts()for targeting specific contextsSetScreenOrientationOverrideTest.java
Add comprehensive screen orientation override testsjava/test/org/openqa/selenium/bidi/emulation/SetScreenOrientationOverrideTest.java
screen.orientationAPI