The pre-requisite for installing Selenium IDE is to have a Mozilla FireFox installed in the machine with a 3X or later version as Selenium IDE is an add-on to FireFox.
- Go to http://seleniumhq.org/download/
- Click on Download version 1.6.0 (at the time of writing this) under Selenium IDE
- Click on Allow button on the pop-up blocker
- Click on Install Now button on the opened pop-up
- After the Installation click on Restart FireFox for complete setup.
The pre-requisites to install RC are to have Java 1.5 or above version and Eclipse IDE installed in your machine.
- You can download and install Java URL from the following http://www.oracle.com/technetwork/java/javase/downloads/index.html
- You can download and install Eclipse from the following URL: http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/helios/R/eclipse-jee-helios-win32.zip
- Extract the Zip Folder and run the eclipse.exe File. There is no separate installation required rather than running the .Exe file.
- Now go to http://seleniumhq.org/download/ and click on Download version 2.19.0(at the time of writing) under Selenium Server section
- Click download link under selenium Client drivers for your desired language. (e.g. To download Selenium Java client drivers, click on Download link for Java)
- Extract the Client drivers into to your Local disk.
- Open Eclipse IDE.
- Create a New Project (Right Click on Project Explore-->New-->select Java Project-->Give the name and click on Finish.
- Right click on the Project-->Build Path-->Configure Build Path--> Libraries tab-->Add External Jars.
- Add the following list of jars to the libraries and Click on Ok to complete the setup.
- Selenium-server-standalone-2.14.0
- Selenium-java-2.14.0
- Selenium-java-2.14.0-srcs
- Go to http://testng.org/doc/download.html and download the latest version of TestNG.
- Extract the zip file to your local disk
- Go to Eclipse and add the testng-6.3.1.jar file to the external jar files as above.
- Now go to Help Menu and click on Install New Software
- Click on Add button
- Give the Name as TestNG (you can give any name, but we prefer TestNG)
- In the location provide the following URL and click on OK http://beust.com/eclipse (For Eclipse 3.4 and above) http://beust.com/eclipse1 (For Eclipse 3.3 and below)
- Now Check the checkbox TestNG and click on Next to install the TestNG
Before starting the execution of your scripts on selenium RC we have to start the selenium server. Following are the steps to start your server.
- Open command prompt
- Type cmd
- Go to the location where your selenium-standalone-server2.14.0.jar resided
- Type the following command at command prompt to start the server. java –jar selenium-standalone-server-2.14.0.jar
- Open Notepad and type the following text D: cd Selenium\ java -jar selenium-server-standalone-2.14.0.jar(Here I assumed that your server is at D: drive)
- Now save the File as server.bat on your desktop.
- Now whenever you want to start the server you just run this batch file. When the server starts running you can see the following screenshot on your desktop.