[rb] ensure driver process is always stopped #15635
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
User description
🔗 Related Issues
one part of #15634
💥 What does this PR do?
🔧 Implementation Notes
It might be more obvious to duplicate this in each local driver, but I actually like adding the block here because it also removes the array return that I hate anyway.
💡 Additional Considerations
This should be good as is
🔄 Types of changes
PR Type
Bug fix
Description
Refactored
initialize_local_driverto ensure driver processes are stopped.Moved
service_urlmethod fromcommon/driver.rbtocommon/local_driver.rb.Updated driver initialization for Chrome, Edge, Firefox, IE, and Safari to use a block for error handling.
Added error handling to stop service manager on WebDriver errors.
Changes walkthrough 📝
6 files
Refactored Chrome driver initialization for error handlingAdded error handling and moved `service_url` methodRefactored Edge driver initialization for error handlingRefactored Firefox driver initialization for error handlingRefactored IE driver initialization for error handlingRefactored Safari driver initialization for error handling1 files
Removed `service_url` method from common driver