Skip to content

Commit

Permalink
Default firefox in tests to use marionette
Browse files Browse the repository at this point in the history
It's about time to do this.
  • Loading branch information
shs96c committed Sep 5, 2016
1 parent c314b3a commit 5a715b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ public static DesiredCapabilities of(Browser browser) {

case ff:
caps = DesiredCapabilities.firefox();
caps.setCapability(FirefoxDriver.MARIONETTE,
Boolean.getBoolean(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE));
String property =
System.getProperty(FirefoxDriver.SystemProperty.DRIVER_USE_MARIONETTE, "true");
boolean useMarionette = property != null && Boolean.parseBoolean(property);
caps.setCapability(FirefoxDriver.MARIONETTE, useMarionette);
break;

case htmlunit:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ private static Capabilities tweakCapabilities(Capabilities desiredCaps) {
}
DesiredCapabilities tweaked = new DesiredCapabilities(desiredCaps);

if (!Boolean.TRUE.equals(tweaked.getCapability(MARIONETTE))) {
tweaked.setCapability(MARIONETTE, false);
}

if (tweaked.getCapability(PROFILE) == null) {
tweaked.setCapability(PROFILE, createTemporaryProfile());
} else {
Expand Down

0 comments on commit 5a715b6

Please sign in to comment.