-
-
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] Add Bidi Network Response Handler #14900
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
Description
This PR adds support to handle network responses and intercept them
It also refactors the previous implementations for network auth in ruby and allows to pass any method the user wants to the network methods
Now it's possible to call network.add_response_handler
Here is a video of all the test passing:
passing_tests.mov
Formatting results locally on latest PR:
Motivation and Context
To complete the specification stated on #13993 and to get closer to have a full BiDi implementation for the Ruby bindings that the user can use for all their Network related needs
Types of changes
Checklist
PR Type
Enhancement
Description
continue_with_response
methodcontinue_without_auth
andcancel_auth
Changes walkthrough 📝
network.rb
Enhanced network response handling and auth methods
rb/lib/selenium/webdriver/bidi/network.rb
continue_without_auth
andcancel_auth
continue_with_response
method for handling network responsescontinue_with_request
command nameon
methodnetwork.rb
Network handler implementation and management improvements
rb/lib/selenium/webdriver/common/network.rb
fetch_id
for request handlingnetwork_spec.rb
Network response and auth handling test coverage
rb/spec/integration/selenium/webdriver/bidi/network_spec.rb
network_spec.rb
Network response handler integration tests
rb/spec/integration/selenium/webdriver/network_spec.rb
network.rbs
Updated type signatures for network methods
rb/sig/lib/selenium/webdriver/bidi/network.rbs
bidi.rbs
Enhanced callback method type signature
rb/sig/lib/selenium/webdriver/bidi.rbs