Tuesday, April 29, 2014

Eclipse and Selenium configuration

This Post explain how to configure eclipse and selenium 2.
I assume that you are already having Eclipse, JAVA  and Selenium 2 set up file with you. And also necessary jar file and Driver for browser.If you don't have necessary setup file with you then first you need to download otherwise below given steps will not be helpful for you.

In the below description i have given the path which i am using in my machine, you can change it as per your need.

Eclipse Configuration:

1. First copy and paste eclipse folder (Eclipse folder is the set up folder which you need to download first) on c drive
2. Now create a folder as “Selenium” in c drive
3. Now put all the jar file (Excel Jar, Java Jar) in this folder ( Jar files are downloaded from selenium site. I am suing using excel in my project therefore i have downloaded excel jar file, if you are not using excel sheet then it's not necessary to add excel jar)
4. Put the IE driver also (IE driver we don’t need to add as jar; we will be just giving the path for IE driver in our code) (Since i want to user IE browser for my test therefore i have to use IE driver)
5. Now open the eclipse exe
6. Right click on the project 
7. Now select Build Path->Configure Path
8. Click on external jar file
9. Click Ok
10. Now refresh the project.


1. Eclipse in c drive







2. Create a selenium folder to put jar in this






IE Driver


3. Adding Jar in Eclipse



4. Add External Jar:


5. Click Ok

Set up is done. Now you can just start using eclipse with selenium 2 (Webdriver) for your automation test.