-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Add NumberFormatException when the port isn't correctly formatted for Firefox, Edge and Chrome Drivers #14946
base: trunk
Are you sure you want to change the base?
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. |
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