[rb] manage bidi instance on the bridge not the driver#14071
[rb] manage bidi instance on the bridge not the driver#14071titusfortner merged 2 commits intotrunkfrom
Conversation
PR Review 🔍
|
PR Code Suggestions ✨
|
CI Failure Feedback 🧐(Checks updated until commit 4cbaa89)
✨ CI feedback usage guide:The CI feedback tool (
In addition to being automatically triggered, the tool can also be invoked manually by commenting on a PR: where Configuration options
See more information about the |
|
Actually, the AI has good suggestions to fix. |
User description
Description
Moves implementation of bidi away from the driver class and onto the bridge class
Should be a non-breaking change
Motivation and Context
Classes that use BiDi should be initialized by a bridge instance not the driver instance.
I think we probably want to implement the conversion of WebDriver Classic to WebDriver BiDi as a separate Bridge, and this should make that easier.
PR Type
enhancement
Description
quitandclosemethods in the driver class to remove BiDi handling.quitandclosemethods.Changes walkthrough 📝
driver.rb
Remove BiDi instance management from driver classrb/lib/selenium/webdriver/common/driver.rb
quitandclosemethods to remove BiDi handling.has_bidi.rb
Delegate BiDi instance management to bridgerb/lib/selenium/webdriver/common/driver_extensions/has_bidi.rb
bidimethod to delegate to the bridge.bridge.rb
Add BiDi instance management to bridge classrb/lib/selenium/webdriver/remote/bridge.rb
quitandclosemethods to handle BiDi instance.driver.rbs
Remove BiDi instance variable from driver signaturerb/sig/lib/selenium/webdriver/common/driver.rbs
bridge.rbs
Add BiDi instance variable to bridge signaturerb/sig/lib/selenium/webdriver/remote/bridge.rbs