-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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 new WebDriver support for Edge - JAVA #7164
Add new WebDriver support for Edge - JAVA #7164
Conversation
Moving edgehtml into its own package since the new Chromium Edge will be used primarily. Adding StandardSeleniumTests suite for EdgeDriver so that we can test Edge by running 'go //java/client/test/org/openqa/selenium/edge:edgehtml:run'.
Integrate ChromiumEdge under EdgeDriver and add StandardSeleneiumTest suite for ChromiumEdge. We can run the test by calling 'go test_edge'. Also, all tests skipped by CHROME will also be skipped by CHROMIUMEDGE.
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.
This looks a lot better. Thank you for the update.
I do worry that this diff clearly states that Edge is a Chrome derivative, and not a Chromium derivative, and I'm not sure that's the intent. I'd be fine extracting an abstract ChromiumDriver
in a separate PR. If you'd prefer to land that after this, please LMK.
java/client/src/org/openqa/selenium/chrome/ChromeDriverCommandExecutor.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/ChromiumEdgeDriverService.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/edgehtml/EdgeHTMLDriverService.java
Outdated
Show resolved
Hide resolved
java/client/test/org/openqa/selenium/edge/EdgeOptionsFunctionalTest.java
Outdated
Show resolved
Hide resolved
java/client/test/org/openqa/selenium/edge/EdgeOptionsFunctionalTest.java
Show resolved
Hide resolved
java/client/test/org/openqa/selenium/edge/EdgeOptionsFunctionalTest.java
Outdated
Show resolved
Hide resolved
Thanks @shs96c. I'll be extracting 'ChromiumDriver' in this PR. |
Extracting Chromium package from Chrome and have both Edge and Chrome inherited from Chromium package. Also, address some PR feedbacks.
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.
This is ready to merge once the naming is more like EdgeHtmlDriver
rather than EdgeHTMLDriver
. Everything else can be addressed in a later PR.
java/client/src/org/openqa/selenium/chromium/ChromiumDriverInfo.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/chromium/ChromiumOptions.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/ChromiumEdgeDriverInfo.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/ChromiumEdgeDriverInfo.java
Outdated
Show resolved
Hide resolved
* @return A self reference. | ||
*/ | ||
@Override | ||
public EdgeDriverService.Builder withVerbose(boolean verbose) { |
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'm curious to know if you can be both verbose and silent....
Side story: when I was working in radio, my fellow engineers and I once had to find "noisy silence". You can't have silence on the air, but it had to be clear it was meant to be silent.
java/client/src/org/openqa/selenium/edge/edgehtml/EdgeHTMLDriverInfo.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/edgehtml/EdgeHTMLDriverService.java
Outdated
Show resolved
Hide resolved
java/client/src/org/openqa/selenium/edge/edgehtml/module-info.txt
Outdated
Show resolved
Hide resolved
Rename EdgeHTML to EdgeHtml and add generics return type for ChromeOptions.
@shs96c All done :) |
Woohoo! Landing this now :) Congratulations! |
What about JavaScript client for Selenium/Edge Chromium? |
Javascript is not our top priority for now, but there will definitely be more languages support in the future. |
Following coding pattern from FirefoxDriver to spin up MicrosoftWebDriver.exe or MSEdgeDriver.exe depending on System Property "webdriver.edge.edgehtml".
By default, MicrosoftWebDriver.exe will be picked and launched if the system property does not exist or set to "true". If it is "false", MSEdgeDriver.exe will be used (available for download under Microsoft Edge Insider: https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver/)
I will probably follow up with a Wiki page if necessary when the PR is completed.
X
in the preceding checkbox, I verify that I have signed the Contributor License AgreementThis change is