Professional Documents
Culture Documents
Selenium & TestNG Installation Guide
Selenium & TestNG Installation Guide
1. Download and Install Java 8 or higher version and set Java Home Path in System variables.
2. Download and configure Eclipse.
3. Download Selenium WebDriver Java Client
4. Configure Selenium WebDriver
1) Download JDK
https://www.oracle.com/java/technologies/downloads/#java11-windows
Install the above executable file by double clicking on it and accept the terms and condition.
Set the Java Home Path inside the Environment variable by following step 2-3.
Click on the “New” button on the System Properties section and add the copied path from Step2
on the “New System Variable” pop-up and click on OK button.
2. Download Eclipse
2.1 : Download the Eclipse from the official website. [https://www.eclipse.org/downloads/]. Click on
the “Download Packages” and then download the “Eclipse IDE for Java Developers” version based on
your OS.
Once the file is downloaded, double click and install it. Enter the workspace and then click on Launch
button.
Now create 1 Java Project. Create a new project through File > New > Java Project. Name the project as
“newproject”.
Project Name
Location to save project
Select an execution JRE
Select layout project option
Click on Finish button
4. In this step,
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-4.4.0.zip”. For simplicity of Selenium installation on
Windows 10, 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.
1. Launch Eclipse.
2. On the menu bar, click Help.
3. Choose the “Install New Software…” option.
4. Search the TestNG using the Find option and,
5. Click on the installation button. Confirm the installation process.
6. Click on confirm button
7. Accept the license agreement
8. Select the radio button “I accept the terms of the license agreement”.
9. Click on Finish.
10. It will take time depending on your Internet speed.
11. After accept the licence agreement,
12. wait for installation. Ignore security warning if occurs
13. If you encounter a Security warning, just click “Install Anyway”. Finish the installation and restart
your system.
14. Wait for the TestNG install in Eclipse to finish. When Eclipse prompts you for a restart, click
“Restart now.” Verify if the installation is done properly.
15. After the restart, verify if TestNG for Eclipse was indeed successfully installed. Click Window >
Show View > Other.
16. Then open the Java directory and see if TestNG is included.
NOTE: After TestNG installation to the Eclipse we should add the TestNG Library or Jar files to all the
projects in eclipse. In order to add it,RC on the Project folder-> Go to Build Path &select Add Libraries,
select TestNG &click on Next &Finish.
ChromeDriver Downloads