Monday, 12 May 2014

Installation and Configuring Selenium WebDriver in Eclipse



Basic Steps in installation of Selenium web driver.


1 .       Install java on your machine.


From this site download the latest JDK version based on your computer requirement (64 bit or 32 bit).






2 .       Install Eclipse on your machine.
Eclipse can be installed from
From this site down load eclipse based on your computer requirement (64 bit or 32 bit)





  1. Install selenium client and web driver bindings.
Selenium Client can be downloaded from




  1. Save the above downloaded zip file in C:\  or D:\ drive. Extract the files into a folder.

  1. Now Open the Eclipse.exe file which was installed earlier and select a workspace location.
Choose your own workspace or select default and click on “ok”.


  1. Create a new project in your Eclipse.
File --> New  -->Project --> Java Project --> Specify the project name --> Click on Finish
Your new project will be created in Eclipse.







  1. Now create a new package inside the project created.
Steps:
1.  Right Click on the Project name.
2.  Click on New-->Package.
3.  A pop up window will open.
4.   Enter the Package name.
A new package is created.



  1. Create a new class in the package.
Steps:

1. Right Click on the Package name.
2. Click on New-->Class.
3. A pop up window will open.
4. Enter the Class name.

A new class will be created.


  1. Add External Jars to the project.
Steps:
1.       Right Click on Project name and click on properties.
2.       Select “Java Build Path” on left side and “Libraries” in the tab.
3. Click on "Add external JARs" button.
4. Select all the jar files extracted and saved on the machine earlier.
5. Click on OK.












10.   The project structure looks like this.



No comments:

Post a Comment