Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1019 Bytes

File metadata and controls

38 lines (25 loc) · 1019 Bytes

PageObjectModelTutorial

The project demonstrates use of Page Object Model automation framework. The framework implements one test case for showcase purpose.

Getting Started

These instructions will help you get started.

Prerequisites

  1. Java
  2. Maven
  3. Browser driver [Project have a chrome driver embedded, chrome version: Version 76.0.3809.100 (64-bit)]

Tests

Uses Zero banking site for scenarios.

Test scenarios

  1. Login to the portal successfully and verify landing page.

How to execute test

  1. Through IDE: right click on "TestsToExecute.java" and run "verifyLogin()"
  2. Through command prompt: mvn test

About Page Object Model framework

Each page have an associated class created for it. Each class with UI elements and methods associated with the page. Classes have UI elements declared as "By" object:

By signinButton = By.id("signin_button");

Which is used in methods as:

driver.findElement(signinButton).click();