-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] Add Bidi network commands for authentication and interception #14523
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 commands for authentication and interception #14523
Conversation
… into bidi_add_authentication_handler
… into bidi_add_authentication_handler
PR Code Suggestions ✨Explore these optional code suggestions:
|
… into bidi_add_authentication_handler
… into bidi_add_authentication_handler
… into bidi_add_authentication_handler
|
@p0deje whenever you have time I fixed the linter issues, so I can continue with the BiDi implementation for Ruby, and ran the linter locally to double check, thank you so much!
|

Description
This PR adds the following:
Motivation and Context
Based on #13993 this PR follows the agreed defined API methods implemented for the Ruby binding, now is possible to call driver.network.add_authentication_handler
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Networkclass within theBiDimodule to handle network events and authentication.Networkclass to ensure functionality.Networkclass and related methods.Changes walkthrough 📝
5 files
bidi.rb
Add autoload for Network in BiDi classrb/lib/selenium/webdriver/bidi.rb
Networkin theBiDiclass.network.rb
Introduce Network class with intercept and auth handlingrb/lib/selenium/webdriver/bidi/network.rb
Networkclass withinBiDi.authentication.
common.rb
Add require statement for networkrb/lib/selenium/webdriver/common.rb
network.driver.rb
Add network method to Driver classrb/lib/selenium/webdriver/common/driver.rb
networkmethod to return aNetworkinstance.network.rb
Create Network class for authentication managementrb/lib/selenium/webdriver/common/network.rb
Networkclass for managing authentication handlers.1 files
struct.rb
Fix comment formatting in BiDi modulerb/lib/selenium/webdriver/bidi/struct.rb
BiDimodule.3 files
network_spec.rb
Add integration tests for BiDi Network classrb/spec/integration/selenium/webdriver/bidi/network_spec.rb
Networkclass inBiDi.network_spec.rb
Add integration tests for Network classrb/spec/integration/selenium/webdriver/network_spec.rb
Networkclass.network_spec.rb
Add unit tests for BiDi Network classrb/spec/unit/selenium/webdriver/bidi/network_spec.rb
Networkclass inBiDi.3 files
network.rbs
Add type signatures for BiDi Network classrb/sig/lib/selenium/webdriver/bidi/network.rbs
Networkclass inBiDi.driver.rbs
Add type signature for network methodrb/sig/lib/selenium/webdriver/common/driver.rbs
networkmethod.network.rbs
Add type signatures for Network classrb/sig/lib/selenium/webdriver/common/network.rbs
Networkclass.