[bidi] [java] Ensure the listeners returns an id#14215
[bidi] [java] Ensure the listeners returns an id#14215pujagani merged 2 commits intoSeleniumHQ:trunkfrom
Conversation
This is the base for implementing the high-level BiDi API
PR Reviewer Guide 🔍
|
PR Code Suggestions ✨
|
User description
This is the base for implementing the high-level BiDi API
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Motivation and Context
Types of changes
Checklist
PR Type
Enhancement
Description
addListenermethods inBiDi,Connection, andLogInspectorclasses to return a long ID, enabling better listener management.removeListenermethod inBiDiandConnectionclasses to allow removal of listeners by their ID.Connectionto store listeners with their corresponding IDs.Changes walkthrough 📝
BiDi.java
Modify listener methods to return IDs and add removal methodjava/src/org/openqa/selenium/bidi/BiDi.java
addListenermethods to return a long ID.removeListenermethod to remove listeners by ID.Connection.java
Enhance listener management with ID-based trackingjava/src/org/openqa/selenium/bidi/Connection.java
addListenermethod to return a long ID.removeListenermethod to remove listeners by ID.LogInspector.java
Update LogInspector to use ID-based listener managementjava/src/org/openqa/selenium/bidi/module/LogInspector.java