Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

page-object-loader

gd4621ISC1.1.0

Dynamic page object loader

protractor, testing, page object

readme

Page Object Loader

Awesome Commitizen friendly semantic-release

Install

npm install page-object-loader

Goals

To dynamically require page objects any where in a project.

Format

This page object loader will return an object with the following pattern:

pages = {
    pageName : require(path)
}

This also enforces page object names to follow the following patterns:

  1. First letter must be capital
  2. Page name must be camel case
  3. No need to hage page as apart of the name

Examples

Good Examples

function Example () {

}

function ExampleTest () {

}

Bad Examples

function ExamplePage () {

}

function examplePage () {

}

function example () {

}