doamaral / java-selenium-testng

Trying out TestNG for UI testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Page Object Model and Page Factory example

Using Page Object Model and Page Factory in a Simple UI Test project

Project Automation Setup

  1. Download geckodriver.exe and edit the system variable Path
  2. Create Maven Project and Add Selenium and TestNG dependencies into pom.xml
<dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
    <version>3.141.59</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.testng/testng -->
<dependency>
    <groupId>org.testng</groupId>
    <artifactId>testng</artifactId>
    <version>6.14.3</version>
    <scope>test</scope>
</dependency>

About

Trying out TestNG for UI testing


Languages

Language:Java 100.0%