-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] Rescuing the remote cause for session creation errors #16418
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
Conversation
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
PR Code Suggestions ✨Explore these optional code suggestions:
|
User description
🔗 Related Issues
Fixes #16388
💥 What does this PR do?
Every now and then, someone complains because the real reason a remote session creation fails is hidden in the stack trace. This identifies the cause, if it exists, and displays it at the top level.
PR Type
Bug fix
Description
Improved error messaging for remote session creation failures
Extracts and displays the underlying cause message at the top level
Prevents real error reasons from being hidden in stack traces
Diagram Walkthrough
File Walkthrough
RemoteWebDriver.java
Enhanced remote session error message extraction
java/src/org/openqa/selenium/remote/RemoteWebDriver.java
execute()
method for NEW_SESSION commandvisibility