Skip to content

Commit

Permalink
Use FirefoxDriver instead of the deprecated MarionetteDriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
juangj committed Aug 6, 2016
1 parent 4729413 commit 944a4c0
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import java.util.logging.Logger;

/**
* This driver provider that instantiates FirefoxDriver or MarionetteDriver.
* This driver provider that instantiates FirefoxDriver.
*/
public class FirefoxDriverProvider implements DriverProvider {

Expand Down Expand Up @@ -61,10 +61,6 @@ public boolean canCreateDriverInstanceFor(Capabilities capabilities) {
@Override
public WebDriver newInstance(Capabilities capabilities) {
LOG.info("Creating a new session for " + capabilities);
Object marionette = capabilities.getCapability("marionette");
if (marionette != null && Boolean.valueOf(marionette.toString())) {
return callConstructor("org.openqa.selenium.firefox.MarionetteDriver", capabilities);
}
return callConstructor("org.openqa.selenium.firefox.FirefoxDriver", capabilities);
}

Expand Down

0 comments on commit 944a4c0

Please sign in to comment.