Selenium_grid_logo_large Step by Step Installation Instructions for Windows

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

  1. Download Ant version 1.7 from http://apache.mirrors.hoobly.com/ant/binaries/apache-ant-1.7.0-bin.zip
  2. 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.0:

  3. You then need to modify your PATH so that your system picks up the right Ant launcher. Right click on the My Computer icon and edit the system enviroment variables.

    1. Click on the PATH system variable to see the current PATH
    2. Modify it to include the latest version of Ant 1.7
    3. Save the PATH variable file
    4. 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.
    5. From now on, execute all commands from this terminal window

Step 3: Installing Selenium Grid

  1. Download the latest version of Selenium Grid from http://selenium-grid.openqa.org/download.html

  2. 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 within C:/Applications/Java, your Selenium Grid Home is C:/Applications/Java/selenium-grid-1.0.
  3. 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!

  4. Congratulations, it now time to put Selenium Grid to work and run the demo!