How To Download & Install Selenium WebDriver – Part Three

How To Download & Install Selenium WebDriver – Part Three

by | Aug 30, 2022 | Selenium | 0 comments

You can download Selenium Webdriver for Java Client Driver here. You will find client drivers for other languages there, but only choose the one for Java.

This download comes as a ZIP file named “selenium-java-4.4.0.zip”. For simplicity of Selenium installation , extract the contents of this ZIP file on your C drive so that you would have the directory “C:\selenium-4.4.0\”. This directory contains all the JAR files that we would later import on Eclipse for Selenium setup.

Configure Eclipse IDE With WebDriver

  1. Launch the “eclipse.exe” file inside the “eclipse” folder .The executable should be located on C:\Users\Yourusername\Eclipse\eclipse.exe .

2. When asked to select for a workspace, just accept the default location.

3. Create a new project through File > New > Java Project. Name the project as “newproject”.

A new pop-up window will open enter details as follow

  1. Project Name
  2. Location to save project
  3. Select an execution JRE
  4. Select layout project option
  5. Click on Finish button

4. In this step,

  1. Right-click on the newly created project and
  2. Select New > Package, and name that package as “newpackage”.

A pop-up window will open to name the package,

  1. Enter the name of the package
  2. Click on Finish button

5. Create a new Java class under newpackage by right-clicking on it and then selecting- New > Class, and then name it as “MyClass”. Your Eclipse IDE should look like the image below.

When you click on Class, a pop-up window will open, enter details as

  1. Name of the class
  2. Click on Finish button

This is how it looks like after creating class.

Now selenium WebDriver’s into Java Build Path

In this step,

  1. Right-click on “newproject” and select Properties.
  2. On the Properties dialog, click on “Java Build Path”.
  3. Click on the Libraries tab, and then
  4. Click on “Add External JARs..”

When you click on “Add External JARs..” It will open a pop-up window. Select the JAR files you want to add.

After selecting jar files, click on OK button.

Select all files inside the lib folder.

Select files outside lib folder

Once done, click “Apply and Close” button

6. Add all the JAR files inside and outside the “libs” folder. Your Properties dialog should now look similar to the image below.

7. Finally, click OK and we are done importing Selenium libraries into our project.

You May Also Like….

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

patience | free solitaire games | solitaire | microsoft solitaire | klondike solitaire free
Call Now Button