gemunulk / gauge-java-maven-selenium-page-factory-extended

A demo project which extends Selenium Page Factory pattern, to work with AngularJS applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gauge-java-maven-selenium-page-factory-extended Build Status

This is an example project, which extends Selenium Page Factory pattern, to work with AngularJS applications. Approach is to NOT to use @FindBy provided by Selenium. This is purely because @FindBy is very helpful for static elements (not for elements that are dynamically loaded). In AngularJS applications, elements are not loaded instantly and Selenium needs to wait for the element to load or do a regular check for it's existence (using Expected conditions). In that cases, @FindBy would not work and you have to use By selectors.

This project uses

Concepts covered

Prerequisites

System Under Test (SUT)

Using the "APP_ENDPOINT" /env/default/default.properties

Executing specs

Set up

This project requires maven to install dependencies. To install dependencies re-import maven dependencies using IntelliJ IDEA.

All specs

mvn gauge:execute -DspecsDir=specs

This will also compile all the supporting code implementations.

About

A demo project which extends Selenium Page Factory pattern, to work with AngularJS applications.

License:MIT License


Languages

Language:Java 100.0%