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
Investigate and resolve ChromeDriver "ConnectFailure (Connection refused)" errors occurring on subsequent driver instantiations in Ubuntu 16.04 with Selenium 3.9.0 and Chrome 65/ChromeDriver 2.35.
Provide a fix or guidance so that only the first ChromeDriver instance is not uniquely successful; subsequent instantiations should also connect without errors.
Validate behavior with the specified environment and reproduce the issue using the provided steps/screenshots.
Objective: To create a detailed and reliable record of critical system actions for security analysis and compliance.
Status: No auditing: The new void emulation methods invoke BiDi commands without any added auditing or logging of the action, user, or outcome, making it unclear whether critical actions are captured elsewhere.
Generic: Robust Error Handling and Edge Case Management
Objective: Ensure comprehensive error handling that provides meaningful context and graceful degradation
Status: Unhandled errors: The methods send BiDi commands without visible handling of failures, exceptions, or edge cases (e.g., transport errors), which may be addressed by lower layers but is not evident from the diff.
Why: The suggestion correctly identifies that using Void.class is more precise and potentially more efficient than Map.class for a command where the result is ignored, improving code clarity and performance.
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
💥 What does this PR do?
All commands return
EmptynotMap<String, Object>which was a mistake on my part.Spec: https://w3c.github.io/webdriver-bidi/#module-emulation
Thanks to @asolntsev for noticing this in my previous PR
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix
Description
Corrects emulation command return types from Map to void
Aligns implementation with W3C WebDriver BiDi specification
Fixes inconsistency where three methods incorrectly returned Map<String, Object>
Diagram Walkthrough
File Walkthrough
Emulation.java
Correct emulation method return types to voidjava/src/org/openqa/selenium/bidi/emulation/Emulation.java
setGeolocationOverride()return type fromMapto
voidsetTimezoneOverride()return type fromMaptovoidsetScriptingEnabled()return type fromMaptovoid