[java][BiDi] implement emulation.setScreenOrientationOverride#16705
[java][BiDi] implement emulation.setScreenOrientationOverride#16705Delta456 merged 5 commits intoSeleniumHQ:trunkfrom
emulation.setScreenOrientationOverride#16705Conversation
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. :( |
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