Setting Up Eclipse IDE With Selenium WebDriver and TestNG

1. Install the latest version of the Java JDK

2. Download the WebDriver JAR files for your preferred programming language and expand it into a folder for loading later into Eclipse

3. Download and install the latest release of Eclipse IDE for Java Developers

4. In Eclipse, open File > New > Java Project

  1. Enter a name for the project e.g. Selenium
  2. Click ‘Next’
  3. Click the ‘Libraries’ tab
  4. Click ‘Add External JARs’
  5. Add all the JARs from the Selenium WebDriver JAR folder (2 files) and the ‘libs’ subdirectory (~20 files)
  6. Click ‘Finish’

5. Install the TestNG plug-in for Eclipse IDE

  1. In Eclipse, click on ‘Help’ > ‘Install New Software’
  2. Enter the URL ‘’ into the ‘Work with:’ field
  3. Click ‘Add’ to add the repository
  4. Check the box next to the repo and click ‘Next’ and follow the on-screen instructions
  5. Verify TestNG is installed by right clicking on the project name and select ‘Run As’. TestNG should be one of the selections that pops op.