-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[java] elaborate more when session does not get created #14581
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 Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
| "Possible causes are invalid address of the remote server or browser start-up" | ||
| + " failure.", | ||
| "Possible causes are invalid address of the remote server, insufficient" | ||
| + " capabilities provided or browser start-up failure.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What type of insufficient capabilities would cause this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe any kind of insufficient capabilities will cause this as it seems to be in #14125
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for sharing. I think the error emphasises sharing the capabilities causing the error, which might not be possible or need to be shared as part of the exception. This message does not capture enough details to fix that issue and it also adds to the existing ambiguity. I am going to close this PR. Please look into how the capabilities causing the error can be shared out. Thank you!
User description
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
Description
Elaborates
SessionNotCreatedExceptionerror let the user know if not enough capabilities are passedMotivation and Context
Fixes #14125 and as per the discussion. This seems to be the only way.
Types of changes
Checklist
PR Type
Bug fix
Description
SessionNotCreatedExceptioninRemoteWebDriverto include insufficient capabilities as a possible cause for session creation failure.Changes walkthrough 📝
RemoteWebDriver.java
Improve error message for session creation failurejava/src/org/openqa/selenium/remote/RemoteWebDriver.java
SessionNotCreatedException.