Skip to content

Commit

Permalink
Add Mac/Linux support for chromedriver.
Browse files Browse the repository at this point in the history
  • Loading branch information
sephinroth committed Jan 29, 2013
1 parent 01ab4bf commit 3d76bb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/com/netease/dagger/GlobalSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public class GlobalSettings {

public static int BrowserCoreType = Integer.parseInt(prop.getProperty("BrowserCoreType", "2"));

public static String ChromeDriverPath = prop.getProperty("ChromeDriverPath", "res/chromedriver_for_win.exe");
public static String ChromeDriverPath = System.getProperties().getProperty("os.name").toLowerCase().contains("win") ?
prop.getProperty("ChromeDriverPath", "res/chromedriver_for_win.exe") : prop.getProperty("ChromeDriverPath", "res/chromedriver_for_mac");

public static String IEDriverPath = prop.getProperty("IEDriverPath", "res/iedriver_32.exe");

Expand Down

0 comments on commit 3d76bb0

Please sign in to comment.