Google+

277. Configuring Projects in Eclipse IDE to work with Selenium WebDriver








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-java-x.xx.x' 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 'lib' and click on 'Finish' button as shown below:



3. Ensure whether 'lib' folder got created as shown below:



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


5. Open the Extracted Folder and ensure that the following files exists as shown below:


6. Copy the two displayed Jar files as shown below:




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




8. Ensure that all the copied .jar files (i.e. two jar files) got pasted as shown below:





9. Now open the 'libs' folder and ensure that the following Jar files exists as shown below:


10. Copy the displayed Jar files as shown below:



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



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



3. 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 'lib' 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 WebDriver Code.




Please comment below to feedback or ask questions.

Is Selenium Server required by Selenium WebDriver ?  will be explained in the next post.



2 comments:

Unknown said...

Hello Arun,

I was trying to install IDE and Web Driver jars in my new pc but since FF is now upgraded & IDE is also upgraded to 2.9.1. Web driver download version available is also 3.6.0 which is confusing me while adding in eclipse. Can you pls provide steps or help in installing/doing the configuration plssss.

Arun Motoori said...

@Ritanjali - Install older version of Firefox 47.0.1 and install Selenium WebDriver version 2.53.1.