-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java][BiDi] implement emulation.setUserAgentOverride
#16668
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?
Implements
emulation.setUserAgentOverridefrom https://w3c.github.io/webdriver-bidi/#command-emulation-setUserAgentOverride from W3C BiDi spec🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Implements
emulation.setUserAgentOverrideBiDi commandAdds
SetUserAgentOverrideParametersclass for parameter handlingSupports context and user context targeting options
Includes comprehensive test coverage for override functionality
Diagram Walkthrough
File Walkthrough
Emulation.java
Add setUserAgentOverride method to Emulationjava/src/org/openqa/selenium/bidi/emulation/Emulation.java
setUserAgentOverridemethod to Emulation classSetUserAgentOverrideParametersand sends BiDi commandSetUserAgentOverrideParameters.java
New parameter class for user agent overridejava/src/org/openqa/selenium/bidi/emulation/SetUserAgentOverrideParameters.java
AbstractOverrideParametersuserAgentstring parametercontexts()method for targeting specific contextsuserContexts()method for targeting user contextsSetUserAgentOverrideTest.java
Comprehensive tests for user agent overridejava/test/org/openqa/selenium/bidi/emulation/SetUserAgentOverrideTest.java