Thursday, May 21, 2015

Run the webdriver scripts in chrome browser


Download the "chromedriver.exe"   and store it in your local path.

 String chromePath="C:\\chromedriver"
 System.setProperty("webdriver.chrome.driver", chromePath);
WebDriver driver=new ChromeDriver();
driver.get("url");

No comments:

Post a Comment