You are on page 1of 4

1. Installing JDK latest version: Go to the following link, http://java.sun.com/javase/downloads/index.jsp Choose the platform and language option.

Platform: Windows Language: Multilanguage Download the latest version of JDK (right now 6.0 is the latest version) Install Java. Checking the java installation: Go to command prompt and type javac. If it successfully installed, you will be getting the information about the java.

1. 2. 3. 4. 5.

See the java home and path in the system properties: Click on Start Right Click on My Computer Click on Properties Click on the Advanced tab. Click on Environment Variables Click New and Set JAVA_HOME=C:\jdk1.5.0_08 Set PATH=%JAVA_HOME%\bin;

2. Download the selenium Remote control from the following link http://selenium-rc.openqa.org/download.jsp Extract the Selenium remote and paste in any directory (For convenience) Open the selenium Remote control folder; you will be having the different client drivers.

Add the Selenium directory to your environment path: 1. 2. 3. 4. 5. 6. Click on Start Right Click on My Computer Click on Properties Click on the Advanced tab. Click on Environment Variables On the upper half there should be a Variable named PATH Double click on it, and add this value at the end of what is already in Variable value ;D:\selenium-remote-control-1.0.3\selenium-server1.0.3\selenium-server.jar; Now you have finished setting up the environment, the next step is to run a few selenium commands. Once you've got Java installed and ready to go, you can start the Selenium Server from the command line like this: java -jar selenium-server.jar interactive Create a batch file(.bat) to start server using the following script:

Edit the script to work>>> pause D: cd Program Files cd selenium-remote-control-1.0.3 cd selenium-server-1.0.3 java -jar selenium-server.jar -interactive Selenium Server starts and allows you to type commands in the command window. After a number of log messages, you should see the following message: Entering interactive mode... type Selenium commands here (e.g: cmd=open&1=http://www.yahoo.com)

You might also like