-
-
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 missing RBS methods #14621
[rb] Add missing RBS methods #14621
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Description
This PR adds an array of RBS missing methods and reduces the RBS errors from 73 to 28
Motivation and Context
To add full RBS support for Selenium and allow us to eventually add an RBS check on the pipeline.
The reference feature is #10943
The goal is also to be able to have no steep errors to start adding the right type on the classes that have untyped to have the right type enforces
Types of changes
Checklist
PR Type
enhancement
Description
Changes walkthrough 📝
11 files
bidi.rbs
Update `remove_callback` method signature in BiDi module
rb/sig/lib/selenium/webdriver/bidi.rbs
remove_callback
method signature to accept parameters.log_handler.rbs
Update return types in LogHandler module
rb/sig/lib/selenium/webdriver/bidi/log_handler.rbs
remove_message_handler
tobool
.subscribe_log_entry
tobool
.unsubscribe_log_entry
tobool
.driver_finder.rbs
Add initialization and path methods to DriverFinder
rb/sig/lib/selenium/webdriver/common/driver_finder.rbs
@options
,@paths
, and@service
.initialize
method with parameters.browser_path
,browser_path?
, anddriver_path
.search_context.rbs
Add accessors and methods to SearchContext module
rb/sig/lib/selenium/webdriver/common/search_context.rbs
attr_accessor
forself.extra_finders
.self.finders
method.service.rbs
Update Service module with new method and type change
rb/sig/lib/selenium/webdriver/common/service.rbs
env_path
toString?
.find_driver_path
method.websocket_connection.rbs
Add and update callback methods in WebSocketConnection
rb/sig/lib/selenium/webdriver/common/websocket_connection.rbs
add_callback
method with parameters.remove_callback
method signature to accept parameters.dialog.rbs
Add initialization method to FedCM Dialog class
rb/sig/lib/selenium/webdriver/fedcm/dialog.rbs
initialize
method withRemote::Bridge
parameter.options.rbs
Add options instance variable to Firefox Options
rb/sig/lib/selenium/webdriver/firefox/options.rbs
@options
.common.rbs
Enhance HTTP Common with headers and user agent methods
rb/sig/lib/selenium/webdriver/remote/http/common.rbs
@common_headers
instance variable.attr_accessor
forself.extra_headers
.attr_writer
and method forself.user_agent
.common_headers
method.guard.rbs
Add tracker attribute reader to Guard class
rb/sig/lib/selenium/webdriver/support/guards/guard.rbs
attr_reader
fortracker
.script.rbs
Add initialization and update handler method in Script class
rb/sig/selenium/web_driver/script.rbs
initialize
method withBiDi
parameter.remove_console_message_handler
to accept anid
parameter.