Friday, 7 March 2014

How to Configure Selenium GRID in Windows System

I recently configured Selenium GRID in my Windows system. Here are the step for a newbie to work with Selenium GRID.

1) Go to SeleniumHQ.org and navigate to Download section.
2) From Selenium Server section, Download latest Selenium Server Standalone jar file.
3) Now we have Selenium server standalone jar in our system.
There are two steps to configure Node and Hub.
 Configure Hub: Go to download folder and hit a commond from cmd:
java -jar selenium-server-standalone-2.40.0 -role hub : if everything works fine you will get a message
AbstractConnector: Started SocketConnector@x.x.x.x:portnumber

Configure Node: Go to download folder and hit a commond from cmd:
java -jar selenium-server-standalone-2.40.0 -role node -hub http://localhost:4444/grid/register
(Keep host as localhost, if  you are configuring both node and hub on same m/c).
if everything works fine you will get a message- Registering the node to hub with url of Node provided earlier.