Tuesday, October 4, 2016

Setup Selenium Java Project in Eclipse

Install Eclipse
If you don’t already have Eclipse installed on your system, then go ahead and install latest version of Eclipse from



Click on the Download button and complete the Installation.

After the installation is complete, Open Eclipse. 

Next, Create a new project in Eclipse by going to File -> New -> Project


 Select Java Project. Next, Enter the name of the project


Click Finish

Now that the Java Project is created, Let's import Selenium files. Right click on the project folder from the left navigation of Eclipse and select Properties.

 

Then select 'Java Build Path' and 'Libraries' tab. This is where all the selenium and lib files are added.

Next, Make sure all the Selenium files are downloaded and ready to upload. If not then download latest Selenium files from the selenium website (http://www.seleniumhq.org/download/)


Go Back to Eclipse and click 'Add External Jars' and navigate to Selenium files folder. Add all the Jar files.
Note - Add all the jar files inside Selenium folder as well as libs folder.



Now that all the Selenium files are added, Eclipse left nav would like this -



Next, Lets write some code to test and make sure selenium works fine. Continue to the next blog here 


No comments:

Post a Comment