You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moves #service_url method from superclass to the applicable module (removes it from Remote driver where it isn't needed)
add rescue to all local driver initialization to ensure drivers are stopped
🔧 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
Bug fix (backwards compatible)
PR Type
Bug fix
Description
Refactored initialize_local_driver to ensure driver processes are stopped.
Moved service_url method from common/driver.rb to common/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 📝
Relevant files
Bug fix
6 files
driver.rb
Refactored Chrome driver initialization for error handling
• Ensure proper cleanup of ChromeDriver processes between instantiations
Requires further human verification:
• Fix "ConnectFailure (Connection refused)" errors when instantiating ChromeDriver multiple times - need to verify if this PR completely resolves the issue
The rescue block only handles WebDriverError exceptions. Consider if other exception types should also trigger service manager cleanup to prevent orphaned processes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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