Site icon TestingDocs.com

How to Download Selenium Webdriver?

Introduction

In this tutorial, we will download the Selenium Webdriver for the Java language. Having said that, Selenium Webdriver is typically not a tool to download and use it straight away. Webdriver is a set of APIs(Application Programming Interface) that can be used, integrated, and interact with the application. The title of this post or the question is misleading but retained so that it looks traditional. 🙂

We will see how we can integrate Selenium Webdriver in the projects that use Maven build tool.

Selenium Webdriver

Click on the download button under Selenium Webdriver.

 

 

Click on the download link.

Maven Project

As discussed earlier, downloading Selenium Webdriver and adding the jar file to the project is an old approach. We can simply add the build tool Selenium dependency to the project build file. For example, in the Maven project, we can add the Selenium dependency to the POM file.

The build tool will download the dependency on the local repository under the hood.

Selenium 3.x dependency

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>3.141.59</version>
</dependency>

Selenium 4.x Alpha

<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>4.0.0-alpha-5</version>
</dependency>

 

Exit mobile version