-
-
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 RBS type support for BiDi related classes #14611
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
Continuing the goal of adding full type support stated on the feature #10943 this PR adds rbs files for newly created BiDi classes and update types
This PR reduces the errors from 87 to 73:
Motivation and Context
The goal is that the Ruby Binding has good type support coverage and that we can perform type validations on our CI/CD
Types of changes
Checklist
PR Type
enhancement, documentation
Description
LogHandler
class to manage logging within the BiDi module.Struct
class with a utility method for string conversion.BiDiBridge
class for managing BiDi sessions.Bridge
class with a newbidi
method.LocatorConverter
class for handling locator conversions.Changes walkthrough 📝
bidi.rbs
Add callback management and update command method signature
rb/sig/lib/selenium/webdriver/bidi.rbs
add_callback
andremove_callback
methods.send_cmd
method to accept aString
type for themethod
parameter.
log_handler.rbs
Introduce LogHandler class for BiDi logging
rb/sig/lib/selenium/webdriver/bidi/log_handler.rbs
LogHandler
class withinBiDi
.struct.rbs
Add Struct class with camel to snake conversion
rb/sig/lib/selenium/webdriver/bidi/struct.rbs
Struct
class with a method to convert camel case to snake case.bidi_bridge.rbs
Add BiDiBridge class for session management
rb/sig/lib/selenium/webdriver/remote/bidi_bridge.rbs
BiDiBridge
class extendingBridge
.bridge.rbs
Add bidi method to Bridge class
rb/sig/lib/selenium/webdriver/remote/bridge.rbs
bidi
method returningWebDriverError
.locator_converter.rbs
Add LocatorConverter class for locator conversion
rb/sig/lib/selenium/webdriver/remote/bridge/locator_converter.rbs
LocatorConverter
class withinBridge
.