Here are detailed, step by step instructions, on how to install Selenium Grid on an Windows machine.
Step 1: Verify That JDK 1.5 is Installed
Ensure that the JDK 1.5 is installed on your machine. Open a terminal window
(DOS Prompt) and run the following command to check your version
java -version
If the JDK is not installed or it is not the correct version please goto the following site to download
Step 2: Install Ant 1.7
Check that you have the right Ant version (1.7) by running in a terminal:
ant -version
If Ant version 1.7 is installed you can go directly to step 3; otherwise, you will need to download Ant version 1.7 as described in the next step
Step 2a: Installing Ant 1.7
- Download Ant version 1.7 from http://mirror.olnevhost.net/pub/apache/ant/binaries/apache-ant-1.7.1-bin.zip
-
Once it has been downloaded, unzip the file in a directory on your local system. For instance under
C:\Applications\Java\apache-ant-1.7.1: -
You then need to modify your
PATHso that your system picks up the right Ant launcher. Right click on the My Computer icon and edit the system enviroment variables.-
Click on the
PATHsystem variable to see the current PATH
-
Modify it to include the latest version of Ant 1.7
-
Save the
PATHvariable file -
To ensure that the latest Path variable is up to date exit from the current
Terminal and re-open a new terminal. Run the following command in the new
terminal and ensure that the latest version of Ant 1.7 is correctly configured.
- From now on, execute all commands from this terminal window
-
Click on the
Step 3: Installing Selenium Grid
-
Download the latest version of Selenium Grid from
http://selenium-grid.seleniumhq.org/download.html
-
Unzip the file into a directory of your choosing
(say
C:\Applications\Java). We will refer to the directory where Selenium Grid is installed as "Selenium Grid Home". For instance if you unzipped the distribution withinC:\Applications\Java, your Selenium Grid Home isC:\Applications\Java\selenium-grid-1.0.4. -
Verify the Selenium Grid install: from the terminal window go to the Selenium Grid home directory and run:
ant sanity-check
If the build is successful, you are all set!
- Congratulations, it now time to put Selenium Grid to work and run the demo!
