- We may need to download and configure Selenium Web Driver API in build path of our java project.
- Navigate to the official website of Selenium and download the stable version of Selenium web Driver API.
- You may get zip file after the completion of download process. Extract the contents of this ZIP file on your C drive so that you would have the directory “C:\selenium\” for simplification. This directory contains all the JAR files that we will add to build path of our Java project.
- Now, open java project in IDE and add these selenium jar files to the build path of your project.
Selenium web driver maven dependency (pom.xml):
- In case you are using maven project, copy the Selenium maven java dependency from https://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-java/3.141.59 and add this dependency to pom.xml file of your Java project.
- Now just build your project, pom.xml file will download all the necessary selenium jars automatically.