-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add NumberFormatException when the port isn't correctly formatted for Firefox, Edge and Chrome Drivers #14946
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
@pujagani FYI |
I wonder if can use this string as a const and use that everywhere. I feel that would be a good idea. |
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.
Can't this be placed in the super class?
Tests added for: InternetExplorerDriverTests SafariDriverTests
@diemol Done, please check Also added Tests for Safari and InternetExplorer alongside the added tests for Firefox, Chrome and Edge |
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.
LGTM. Thank you @MustafaAgamy!
@pujagani The test failures aren't related to the fix Thank you |
Sorry one more time, I forgot another line fix my bad |
@pujagani And I see tests failure related to something else, not sure what's the root cause thank you |
@diemol Bump |
Thank you! @MustafaAgamy |
User description
Description
Add "NumberFormatException" when the port isn't correctly formatted for Firefox, Edge and Chrome Drivers at:
**- GeckoDriverService
Motivation and Context
Due to Operating System langauge set in Arabic, middle east users were getting "SessionNotCreatedException" which wasn't detailed enough, now the users will get a detailed "NumberFormatException" with the recommended solution and a link to the docs for more info
*Please note that I already had tests created for previous PR, now I just adjusted those Tests to work better with the given scenario (Expected to Throw NumberFormatException)
Types of changes
Checklist
PR Type
Bug fix, Enhancement
Description
Changes walkthrough 📝
ChromeDriverService.java
Add locale validation for Chrome driver port formatting
java/src/org/openqa/selenium/chrome/ChromeDriverService.java
EdgeDriverService.java
Add locale validation for Edge driver port formatting
java/src/org/openqa/selenium/edge/EdgeDriverService.java
GeckoDriverService.java
Add locale validation for Firefox driver port formatting
java/src/org/openqa/selenium/firefox/GeckoDriverService.java
ChromeDriverFunctionalTest.java
Update Chrome driver tests for locale validation
java/test/org/openqa/selenium/chrome/ChromeDriverFunctionalTest.java
locale
EdgeDriverFunctionalTest.java
Update Edge driver tests for locale validation
java/test/org/openqa/selenium/edge/EdgeDriverFunctionalTest.java
locale
FirefoxDriverTest.java
Update Firefox driver tests for locale validation
java/test/org/openqa/selenium/firefox/FirefoxDriverTest.java
locale