-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[rb] Add RBS type support for BiDi related classes #14611
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
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
LogHandlerclass to manage logging within the BiDi module.Structclass with a utility method for string conversion.BiDiBridgeclass for managing BiDi sessions.Bridgeclass with a newbidimethod.LocatorConverterclass for handling locator conversions.Changes walkthrough 📝
bidi.rbs
Add callback management and update command method signaturerb/sig/lib/selenium/webdriver/bidi.rbs
add_callbackandremove_callbackmethods.send_cmdmethod to accept aStringtype for themethodparameter.
log_handler.rbs
Introduce LogHandler class for BiDi loggingrb/sig/lib/selenium/webdriver/bidi/log_handler.rbs
LogHandlerclass withinBiDi.struct.rbs
Add Struct class with camel to snake conversionrb/sig/lib/selenium/webdriver/bidi/struct.rbs
Structclass with a method to convert camel case to snake case.bidi_bridge.rbs
Add BiDiBridge class for session managementrb/sig/lib/selenium/webdriver/remote/bidi_bridge.rbs
BiDiBridgeclass extendingBridge.bridge.rbs
Add bidi method to Bridge classrb/sig/lib/selenium/webdriver/remote/bridge.rbs
bidimethod returningWebDriverError.locator_converter.rbs
Add LocatorConverter class for locator conversionrb/sig/lib/selenium/webdriver/remote/bridge/locator_converter.rbs
LocatorConverterclass withinBridge.