-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] Add missing RBS methods #14621
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
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 modulerb/sig/lib/selenium/webdriver/bidi.rbs
remove_callbackmethod signature to accept parameters.log_handler.rbs
Update return types in LogHandler modulerb/sig/lib/selenium/webdriver/bidi/log_handler.rbs
remove_message_handlertobool.subscribe_log_entrytobool.unsubscribe_log_entrytobool.driver_finder.rbs
Add initialization and path methods to DriverFinderrb/sig/lib/selenium/webdriver/common/driver_finder.rbs
@options,@paths, and@service.initializemethod with parameters.browser_path,browser_path?, anddriver_path.search_context.rbs
Add accessors and methods to SearchContext modulerb/sig/lib/selenium/webdriver/common/search_context.rbs
attr_accessorforself.extra_finders.self.findersmethod.service.rbs
Update Service module with new method and type changerb/sig/lib/selenium/webdriver/common/service.rbs
env_pathtoString?.find_driver_pathmethod.websocket_connection.rbs
Add and update callback methods in WebSocketConnectionrb/sig/lib/selenium/webdriver/common/websocket_connection.rbs
add_callbackmethod with parameters.remove_callbackmethod signature to accept parameters.dialog.rbs
Add initialization method to FedCM Dialog classrb/sig/lib/selenium/webdriver/fedcm/dialog.rbs
initializemethod withRemote::Bridgeparameter.options.rbs
Add options instance variable to Firefox Optionsrb/sig/lib/selenium/webdriver/firefox/options.rbs
@options.common.rbs
Enhance HTTP Common with headers and user agent methodsrb/sig/lib/selenium/webdriver/remote/http/common.rbs
@common_headersinstance variable.attr_accessorforself.extra_headers.attr_writerand method forself.user_agent.common_headersmethod.guard.rbs
Add tracker attribute reader to Guard classrb/sig/lib/selenium/webdriver/support/guards/guard.rbs
attr_readerfortracker.script.rbs
Add initialization and update handler method in Script classrb/sig/selenium/web_driver/script.rbs
initializemethod withBiDiparameter.remove_console_message_handlerto accept anidparameter.