Licence
ISC
Version
1.1.0
Deps
2
Vulns
0
Weekly
0
Page Object Loader
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:
- First letter must be capital
- Page name must be camel case
- 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 () {
}