Skip to content

Commit

Permalink
Fix Edge tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c authored and barancev committed Jun 4, 2019
1 parent 6a719ff commit 515b81c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;

import org.openqa.selenium.remote.service.DriverService;

import java.io.File;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public Factory(Predicate<Capabilities> key, String serviceClassName) {

if (factory == null) {
throw new IllegalArgumentException(
"DriverService has no mechanism to create a default instance");
"DriverService has no mechanism to create a default instance: " + serviceClassName);
}

this.createService = factory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ public ActiveSessionFactory() {
"org.openqa.selenium.firefox.xpi.XpiDriverService")
.put(browserName(CHROME), "org.openqa.selenium.chrome.ChromeDriverService")
.put(containsKey("chromeOptions"), "org.openqa.selenium.chrome.ChromeDriverService")
.put(browserName(EDGE), "org.openqa.selenium.edge.EdgeDriverService")
.put(containsKey("edgeOptions"), "org.openqa.selenium.edge.EdgeDriverService")
.put(browserName(EDGE), "org.openqa.selenium.edge.ChromiumEdgeDriverService")
.put(containsKey("edgeOptions"), "org.openqa.selenium.edge.ChromiumEdgeDriverService")
.put(browserName(FIREFOX), "org.openqa.selenium.firefox.GeckoDriverService")
.put(containsKey(Pattern.compile("^moz:.*")), "org.openqa.selenium.firefox.GeckoDriverService")
.put(browserName(IE), "org.openqa.selenium.ie.InternetExplorerDriverService")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public class DefaultDriverFactory implements DriverFactory {
Stream.of(
createProvider(new ImmutableCapabilities(BROWSER_NAME, IE, PLATFORM_NAME, WINDOWS),
"org.openqa.selenium.ie.InternetExplorerDriver"),
createProvider(new ImmutableCapabilities(BROWSER_NAME, EDGE, PLATFORM_NAME, WINDOWS),
createProvider(new ImmutableCapabilities(BROWSER_NAME, EDGE),
"org.openqa.selenium.edge.EdgeDriver"),
createProvider(new ImmutableCapabilities(BROWSER_NAME, SAFARI, PLATFORM_NAME, MAC),
"org.openqa.selenium.safari.SafariDriver"))
Expand Down

0 comments on commit 515b81c

Please sign in to comment.