Skip to content

Commit

Permalink
use default driver if system property not defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardesco committed Sep 2, 2015
1 parent 454f26c commit 143ad55
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class WebDriverThread {
private DriverType selectedDriverType;

private final DriverType defaultDriverType = FIREFOX;
private final String browser = System.getProperty("browser").toUpperCase();
private final String browser = System.getProperty("browser", defaultDriverType.toString()).toUpperCase();
private final String operatingSystem = System.getProperty("os.name").toUpperCase();
private final String systemArchitecture = System.getProperty("os.arch");
private final boolean useRemoteWebDriver = Boolean.getBoolean("remoteDriver");
Expand Down

0 comments on commit 143ad55

Please sign in to comment.