Configure the JAR files for the Selenium Web Automation project. We will make use of Eclipse IDE to configure our project before the web automation.
Create a Java Project
Launch Eclipse IDE in your preferred workspace. I will be working on Eclipse IDE 2021‑09. You might have a different version but the process will be the same.
Click on File -> New -> Java Project.
Give the project name and select the execution environment. I will be working on Java 8, therefore, I have selected
JavaSE-1.8. Keep all the settings to default and click on
Open the Project Explorer to find your new Java Project created.
Configure Build Path
We have to add all the selenium libraries that will help build and run our web automation. Right-click on the project name, click on Build Path -> Configure Build Path.
Go to Libraries and click on
Add External JARs.
Navigate to the folder and select all the JAR files and click on Open. You can download the JAR files from the Download page -> Cucumber Selenium JAR Files. Remove all the JARs with the name cucumber because we are not using them in our demo. These JAR files are compatible with Java 8. If you are using Java > 8, then you will have to download the upgraded version of the below jars from Maven Repository.
After you have added all the external JARs, click on Apply and Close.
You can see all the External JARs under Referenced Libraries in your project.