What is Selenium WebDriver?

 What is selenium?

Selenium is an open-source automated testing framework which is used to validate web applications across different browsers and platforms. We can use multiple programming languages like java, c#, python to create test scripts.



What is WebDriver?

WebDriver is a bunch of API (Application programming interface) for DOM (Document Object Model) interaction and Browser control.



How to download selenium webdriver?

Selenium installation is a 3 step process:

  1. Install Java SDK

  2. Install Eclipse

  3. Install Selenium Driver File

    1. Open the below link
      https://www.selenium.dev/downloads/

    2. Go to the Selenium Client & WebDriver Language Bindings section.

    3. Choose your convenient language & clicks on Download link

    4. This download comes as a ZIP file named "selenium-3.14.0.zip".

  4. Configure Eclipse IDE with Webdriver

    1. Launch the "eclipse.exe" file inside the "eclipse" folder

    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

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

    2. Create a new Java class under newpackage by right-clicking on it and then selecting- New > Class, and then name it as "MyClass"

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

        1. Name of the class

        2. Click on Finish button

    3. 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.."
    After clicking on Add External JARs, one pop-up window will open and you have to select all 7 JARs into it.

Once done, click the Apply and close button. Now the Referenced library adds in Properties dialog.


Comments

Popular posts from this blog

For Get Dynamic data & USe it into Postman Body parameters

API Automation Testing Script to check Response

Login through Data Driven Testing in selenium

Which dependencies needed in pom.xml while doing automation through selenium?

Download Java(JDK) & Eclipse IDE for selenium

What is data driven testing?

How to extract all the links in selenium?