Showing posts with label chrome driver. Show all posts
Showing posts with label chrome driver. Show all posts

Friday, 18 January 2013

How to run the Webdriver in Chrome browser?

How to run the Webdriver in Chrome browser?


1. First you need to download the Chrome Webdriver:

Here is the Link to Download:

http://code.google.com/p/chromedriver/downloads/list

2. Use the Below code in your Java Program:

System.setProperty("webdriver.chrome.driver", "Path of chromedriver.exe");
driver = new FirefoxDriver();

Note:  You need to specify the path with double slash

Eg : "E:\\chromedriver_win_23.0.1240.0\\chromedriver.exe"