SetUp for ChromeDriver

Start Selenium Server:

C:\Users\ashish.sharda\Downloads>java -jar selenium-server-standalone-2.42.1.jar -role hub -port 4445\Users\ashish.sharda\Downloads \chromedriver.exe


On the client side :

Go to the directory where you have chromedriver installed.

Try to put selenium server jar in the same place



(2)C:\Users\ashish.sharda\Downloads>java -jar selenium-server-standalone-2.42.1.jar -role node -hub http://localhost:4445/grid/register


Then in the code :

ChromeOptions options = new ChromeOptions();




//System.setProperty(“”, prop.getProperty(“chromeLocation”));

DesiredCapabilities capability =;

capability.setCapability(“chrome.binary”,“C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe”);

capability.setCapability(ChromeOptions.CAPABILITY, options);

driver = new RemoteWebDriver(new URL(”), capability);//    ChromeOptions options = new ChromeOptions();




About qainterviews

Software Geek,QA Expert,Blogger
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s