How to setup Selenium Web driver with eclipse ..


When I was new to selenium or you can say that selenium is new for me, I was too confused about this how can I automate a website using selenium even when i do,t know how to use selenium with eclipse, when I do,t know how to configure selenium with my Java project to run that project.

Let us start with how to set up selenium with our java project.
The Basic requirement for this is the following.
1.Java JDK setup.
2.Eclipse setup(Any version).
3. Selenium Java Client Driver.


1.Java JDK setup: If you are new to java technology or eclipse so the first thing you need to do is, Download and install JDK in your system.You can simply download this from http://www.oracle.com/technetwork/java/javase/downloads/index.html

and make sure that you have set the path variable from My Computer > System Properties > Advance System Setting > Advance > Environment variable > Path

2.Eclipse Setup: You can download eclipse from http://www.eclipse.org/downloads/
Make sure to choose the correct link for downloading eclipses that correspond to your OS i.e. for Windows 32 Bit and 64 Bit versions.

3. Selenium java Client Driver: You can download the selenium java client driver from http://docs.seleniumhq.org/download/ and save this into your drive.





Now when you download all the things in your system it's time to configure eclipse with a web driver. To do this we need to follow these simple steps.
1. Open you eclipse IDE.
2.Go to File > New > Java Project

















3.Enter Java project name and click Finish  button.
Now Java project is created.


4.Once Java project is created the next thing you need to do is configure this project with web driver.
To do this you need to follow these simple steps.
(i).Right click on your new created project and select Properties.










(ii).Click on Java Build Path.
















(iii).Go to Libraries and click on "Add External JARs..."



(iv). Import all Selenium JAR file into your project and click on OK




5. Again do step 2 and click on Add Library.



6. Now select JUnit and click on Next Button.



Finally, your eclipse project configures with selenium......

Hope this will help you ...HAVE FUN FRIENDS

Popular posts from this blog

Selenium Webdriver Day 4 : Inheritance

Selenium Webdriver Day 1 : Class and object

Python Programming - Log file is not capturing the data?