-
-
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] manage bidi instance on the bridge not the driver #14071
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
quit
andclose
methods in the driver class to remove BiDi handling.quit
andclose
methods.Changes walkthrough 📝
driver.rb
Remove BiDi instance management from driver class
rb/lib/selenium/webdriver/common/driver.rb
quit
andclose
methods to remove BiDi handling.has_bidi.rb
Delegate BiDi instance management to bridge
rb/lib/selenium/webdriver/common/driver_extensions/has_bidi.rb
bidi
method to delegate to the bridge.bridge.rb
Add BiDi instance management to bridge class
rb/lib/selenium/webdriver/remote/bridge.rb
quit
andclose
methods to handle BiDi instance.driver.rbs
Remove BiDi instance variable from driver signature
rb/sig/lib/selenium/webdriver/common/driver.rbs
bridge.rbs
Add BiDi instance variable to bridge signature
rb/sig/lib/selenium/webdriver/remote/bridge.rbs