-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java][BiDi] change emulation commands return type to void #16699
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:
|
|||||||||
User description
🔗 Related Issues
💥 What does this PR do?
All commands return
EmptynotMap<String, Object>which was a mistake on my part.Spec: https://w3c.github.io/webdriver-bidi/#module-emulation
Thanks to @asolntsev for noticing this in my previous PR
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Corrects emulation command return types from Map to void
Aligns implementation with W3C WebDriver BiDi specification
Fixes inconsistency where three methods incorrectly returned Map<String, Object>
Diagram Walkthrough
File Walkthrough
Emulation.java
Correct emulation method return types to voidjava/src/org/openqa/selenium/bidi/emulation/Emulation.java
setGeolocationOverride()return type fromMapto
voidsetTimezoneOverride()return type fromMaptovoidsetScriptingEnabled()return type fromMaptovoid