-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[java][BiDi] implement browsingContext.historyUpdated #15901
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 Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
🔗 Related Issues
💥 What does this PR do?
Implements https://w3c.github.io/webdriver-bidi/#event-browsingContext-historyUpdated
🔧 Implementation Notes
💡 Additional Considerations
Tests ain't added because they don't work any browser at this stage.
🔄 Types of changes
PR Type
Enhancement
Description
• Implement
browsingContext.historyUpdated
BiDi event• Add event listener support in BrowsingContextInspector
• Create HistoryUpdated class with JSON serialization
Changes walkthrough 📝
HistoryUpdated.java
Add HistoryUpdated BiDi event class
java/src/org/openqa/selenium/bidi/browsingcontext/HistoryUpdated.java
• Create new HistoryUpdated class for BiDi event
• Implement JSON
deserialization with fromJson method
• Add getter methods for
browsingContextId, timestamp, and url
• Include private toJson method
for serialization
BrowsingContextInspector.java
Add historyUpdated event support to inspector
java/src/org/openqa/selenium/bidi/module/BrowsingContextInspector.java
• Add import for HistoryUpdated class
• Create historyUpdated event
with JSON mapper
• Implement onHistoryUpdated listener method
• Add
historyUpdated to close method cleanup