https://sites.google.com/a/chromium.org/chromedriver/
2. Add following code to your Java class at the begining.
//Check your system info String os = System.getProperty("os.name").toLowerCase(); //Load different driver for different OS if (os.contains("mac")){ System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"/chromedriver"); }else{ System.setProperty("webdriver.chrome.driver", System.getProperty("user.dir")+"\\chromedriver.exe"); }
No comments:
Post a Comment