Archivo | Testing RSS for this section

Setting up a project for Testing with Selenium WebDriver

Prerequisites:

  • Java 8+
  • IDE: Eclipse.
  • Apache Maven
  1. Create a Maven project with the option skip archetype selection.
  2. Add dependencies(selenium-java and TestNG* -can be replaced by JUnit-) to pom.xml. (hint can be found at https://mvnrepository.com)
  3. Create a TestNG class in src/test.
  4. Execute test.

Get TestNG eclipse plugin here: https://marketplace.eclipse.org/content/testng-eclipse

Do not forget to Download the Driver for your Browser (Chrome, although support for other exist)