Skip to content

Commit

Permalink
Add EdgeDriver support
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardesco committed Aug 13, 2016
1 parent 166cd3f commit ac6b980
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@ Yes you can specify which browser to use by using one of the following switches:
- -Dbrowser=firefox
- -Dbrowser=chrome
- -Dbrowser=ie
- -Dbrowser=edge
- -Dbrowser=opera
- -Dbrowser=htmlunit
- -Dbrowser=phantomjs

You don't need to worry about downloading the IEDriverServer, chromedriver , operachromium, or wires binaries, this project will do that for you automatically.
You don't need to worry about downloading the IEDriverServer, MicrosoftWebDriver, chromedriver , operachromium, or wires binaries, this project will do that for you automatically.

Not got PhantomJS? Don't worry that will be automatically downloaded for you as well!

Expand Down
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
<plugin>
<groupId>com.lazerycode.selenium</groupId>
<artifactId>driver-binary-downloader-maven-plugin</artifactId>
<version>1.0.10</version>
<version>1.0.11</version>
<configuration>
<rootStandaloneServerDirectory>${project.basedir}/src/test/resources/selenium_standalone_binaries</rootStandaloneServerDirectory>
<downloadedZipFileDirectory>${project.basedir}/src/test/resources/selenium_standalone_zips</downloadedZipFileDirectory>
Expand Down Expand Up @@ -144,6 +144,7 @@
<webdriver.ie.driver>${webdriver.ie.driver}</webdriver.ie.driver>
<webdriver.opera.driver>${webdriver.opera.driver}</webdriver.opera.driver>
<webdriver.gecko.driver>${webdriver.gecko.driver}</webdriver.gecko.driver>
<webdriver.gecko.driver>${webdriver.edge.driver}</webdriver.gecko.driver>
</systemPropertyVariables>
</configuration>
<executions>
Expand Down
11 changes: 11 additions & 0 deletions src/test/java/com/lazerycode/selenium/config/DriverType.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import org.openqa.selenium.Proxy;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.opera.OperaDriver;
Expand Down Expand Up @@ -58,6 +59,16 @@ public WebDriver getWebDriverObject(DesiredCapabilities capabilities) {
return new InternetExplorerDriver(capabilities);
}
},
EDGE {
public DesiredCapabilities getDesiredCapabilities(Proxy proxySettings) {
DesiredCapabilities capabilities = DesiredCapabilities.edge();
return addProxySettings(capabilities, proxySettings);
}

public WebDriver getWebDriverObject(DesiredCapabilities capabilities) {
return new EdgeDriver(capabilities);
}
},
SAFARI {
public DesiredCapabilities getDesiredCapabilities(Proxy proxySettings) {
DesiredCapabilities capabilities = DesiredCapabilities.safari();
Expand Down

0 comments on commit ac6b980

Please sign in to comment.