-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[rb] BiDi Network: add_request_handler, remove_request_handler, clear_request_handlers #14751
Conversation
…o rb_bidi_add_request_handler
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@aguspe This looks great, can we fix the CI and merge? |
@p0deje Now only the RBE checks are failing but this is due to a java test, I will merge it after the last PR executes and keep working on the Network BiDi for Ruby
|
Description
This PR adds the following:
Tests executed locally:
Motivation and Context
Based on #13993 this PR follows the defined API methods implemented for the Ruby binding, now is possible to call driver.network.add_request_handler
This PR continues the work done in #14523
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
continue_with_request
method to the BiDi Network class for handling network requests.continue_with_request
.Changes walkthrough 📝
network.rb
Add continue_with_request method and fix event key
rb/lib/selenium/webdriver/bidi/network.rb
continue_with_request
method to handle network requests.fetch_error
in the EVENTS hash.network.rb
Implement request handler management in Network class
rb/lib/selenium/webdriver/common/network.rb
request_callbacks
attribute for managing request handlers.network.rbs
Update type signature for continue_with_request
rb/sig/lib/selenium/webdriver/bidi/network.rbs
continue_with_request
.network.rbs
Add type signatures for request handler methods
rb/sig/lib/selenium/webdriver/common/network.rbs
network_spec.rb
Add integration test for continue_with_request
rb/spec/integration/selenium/webdriver/bidi/network_spec.rb
continue_with_request
method.network_spec.rb
Add tests for request handler management
rb/spec/integration/selenium/webdriver/network_spec.rb