Skip to content
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

Merged
merged 4 commits into from
May 31, 2019

Conversation

loly89
Copy link
Contributor

@loly89 loly89 commented May 2, 2019

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.


This change is Reviewable

loly89 added 2 commits May 2, 2019 12:22
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.
Copy link
Member

@shs96c shs96c left a 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.

@loly89
Copy link
Contributor Author

loly89 commented May 14, 2019

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.

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.
Copy link
Member

@shs96c shs96c left a 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.

* @return A self reference.
*/
@Override
public EdgeDriverService.Builder withVerbose(boolean verbose) {
Copy link
Member

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.

Rename EdgeHTML to EdgeHtml and add generics return type for
ChromeOptions.
@loly89
Copy link
Contributor Author

loly89 commented May 30, 2019

This is ready to merge once the naming is more like EdgeHtmlDriver rather than EdgeHTMLDriver. Everything else can be addressed in a later PR.

@shs96c All done :)

@shs96c
Copy link
Member

shs96c commented May 31, 2019

Woohoo! Landing this now :) Congratulations!

@shs96c shs96c merged commit aa546c5 into SeleniumHQ:master May 31, 2019
@loly89 loly89 deleted the add_new_driver_support_for_edge_java branch May 31, 2019 16:37
@bhaidar
Copy link

bhaidar commented Sep 14, 2019

What about JavaScript client for Selenium/Edge Chromium?

@loly89
Copy link
Contributor Author

loly89 commented Sep 16, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants