Setting up Eclipse for Selenium RC

Here, we’ll discuss how to set up and configure Eclipse to use it for the java version of selenium RC. So prior to set up, let’s make sure we have all the required components gathered with us and the latest version of java installed in our system. The components required are as below.

  1. Latest version of Eclipse: This can be downloaded from
  2. Selenium RC components: The version for selenium RC is 1.0.3 which can be downloaded from and the file name is
  3. Latest version of junit: This is available at

With these components in place we are all set to configure eclipse to do scripting using selenium RC. The following steps are to be followed for configuring eclipse.

Step 1: Extract Eclipse

Extract the content of eclipse package to your preferred location. Let’s assume here, that the contents are being extracted to C drive of your computer. Since eclipse is a fully fledged package, we need not worry about installing the same. Just extraction is sufficient. Now let’s launch eclipse by double clicking the eclipse icon inside the eclipse folder.

Step 2: Create workspace

After launching eclipse, a prompt appears to use a workspace. A custom workspace can be created using the browse button and creating a new folder. Name that new folder for convenience and select the same and click OK. Now you will be navigated to the home screen of Eclipse. There, we need to click on workbench which will take us to the work area.

Step 3: Create the project and project specific folders

Once we are in the work area, we need to create a project which will contain our scripts. To do so, click on File – New – Java Project as shown in the image below.

Once you click on the Java Project, a pop up window appears to set the parameters of your project.

Provide the name of the project in Project Name field and make sure it uses the latest execution environment. Click on Finish button and the project is created. Once the Project is created you will see it in package explorer on the left side. By expanding the project the there will be one default “src” folder created and it will have the JRE system library files associated to the project. We need to create one additional folder inside the project to hold the library files for our convenience. To do that, right click on the project folder in the package explorer and click on New – Folder.

It will open a pop up window where we need to specify the folder name. Let’s call the folder as “lib”. Once the lib folder is created, navigate to the physical location of the folder. Remember where you had created the Workspace in Step 2. Navigate to that folder, and the project folder can be located there. Once you are inside the lib folder place the library files inside it. What all library files to place? They are as follows:

  1. selenium-java-client-driver.jar
  2. selenium-server.jar (The Java Version)
  3. junit-4.8.2.jar

Now go to eclipse again and hit refresh on the lib folder by clicking the folder and pressing F5 key. You will now be able to see the library file.

Step 4: Configuring the Build Path

To use the library files placed inside the lib folder they need to be added to the build path of the project. How to add them? Right click on the lib folder in package explorer and select Configure Build Path from Build Path.

Once you click the same one pop up window comes up as shown below.

In this pop up window click on Libraries tab and click on the Add JARs button. Now navigate to the lib folder inside your project and select all the JAR files and add them.

Once you add them, click on OK. Now the build path is configured and the project is ready to be used.

Your final package explorer should look as below.

Now to do your scripting you will need to create one class file by right clicking the src folder and do the coding.

NB: there are few more steps to be followed when we are going to use testing and data driven approach which will be covered in later posts.


Setting Up Selenium IDE with Firefox

How do we set up selenium IDE? Before doing anything first we need to check if we have Firefox installed in our system. As we all know IDE is the integrated development environment, selenium provides to record, customize and run different test in Firefox. Since it’s a Firefox add-on, we need to have Firefox installed in our machines to use the same. The max version of Firefox currently supported by IDE is Firefox 5.0 and the current version of IDE is 1.0.12. So first we need to install Firefox in our machine which is available for all sorts of premier operating systems used worldwide and can be downloaded from for free.

Next we need to get the Selenium IDE from selenium website which is It will get downloaded as a .xpi file.

To install the same first open Firefox. The next thing we need to do is drag and drop the selenium-ide.xpi file to the open Firefox browser. After installation we need to restart Firefox to use the same. This cover the environment set up for the use of Selenium IDE.

Now the next question would from where do I launch the Selenium IDE. It’s quite simple. For Firefox 4 and up, click on the Firefox drop-down on top left corner and u can launch the IDE from the developer menu there. For any other Firefox with a version below 4, the IDE can be launched from Tools menu at the top. Now you are ready to use the IDE.

Selenium 2.0 Released….

It’s been quite some time since my last post. I’m really excited about Selenium 2.0 which was released yesterday. Have a lot of research to do on it. How to data drive test using 2.0 and quite a few stuff. Till then, I’ll post selenium teachings step by step so that everyone can benefit. 🙂