3. Configure Projects in Eclipse IDE to work with Selenium RC



1. Create a Project in Eclipse IDE

1. Install Eclipse IDE as explained in Post#8 Install Eclipse IDE
2. Launch Eclipse IDE as explained in Post#9 Launch Eclipse IDE
3. Create a Project in Eclipse IDE as explained in Post#10 How to create Projects in Eclipse IDE

2. Adding Java Client Drivers (i.e. .jar files) in the 'selenium-remote-control-1.0.8' extracted folder to the Project created in Eclipse IDE

1. Right click on the Project and select 'New' -> 'Folder' option as shown below:



2. Ensure 'New Folder' dialog is displayed, specify the folder name as 'library' and click on 'Finish' button as shown below:



3. Ensure whether 'library' folder in added to the Project under 'Package Explorer' as shown below:


4. Go the Folder where we have extracted the 'selenium-remote-control-1.0.3.zip' folder in our previous post as shown below:


5. Open the Extracted Folder and ensure that 'selenium-java-client-driver-1.0.1'  folder exists as shown below:



6. Open the 'selenium-java-client-driver-1.0.1' folder and ensure that there are four .jar files as shown below:


7. Copy these four .jar files as shown below:

8. In Eclipse IDE, select 'libraries' folder and paste the copied .jar files as shown below:


9. Ensure that all the copied .jar files got pasted as shown below:



3. Adding Selenium-Server-Standalone-Version.JAR file to the Project in Eclipse IDE

1. Go to the folder where the downloaded 'selenium-standalone-server-version.jar' file is available as shown below: (i.e. downloaded in our previous post)



2. Copy the 'selenium-server-standalone-version.jar' file as shown below:

3. In Eclipse IDE, select the 'library' folder and paste the copied .jar file as shown below:



4. Ensure that the copied .jar got pasted under the 'library' folder as shown below:


4. Configuring the copied JAR files in Eclipse IDE

1. Right click on the Project and select 'Properties' option as shown below:


2. In 'Properties for Project' dialog, select 'Java Build Path' option as shown below:


3. Select 'Libraries' tab as shown below:


4. Click on 'Add JARs' butt under the 'Libraries' tab as shown below:


5. In 'JAR Selection' dialog, select the all the JAR Files copied under 'library' folder and click on 'OK' button as shown below:


6. Ensure that all the JAR files got added in the properties dialog and click on 'OK' button as shown below:



Thats it !!! Now you have configured your project with all the JAR files that are required for working with Selenium RC Code.


Please comment below to feedback or ask questions.

Configure Selenium Standalone Server to Run from Eclipse IDE ? will be explained in the next post.


No comments:

Post a Comment

Followers

Labels