nemo-pageobjects
v1.0.0
Published
page objects for nemo.js
Downloads
3
Maintainers
Readme
nemo-pageobjects
page objects for nemo.js
nemoPage
Initializes the Page Objects automatically and attaches pages to the nemo.page
namespace. You do not need to instantiate the pages in your suite.
Setup
npm install nemo-pageobjects --save-dev
Add the NemoPage to your Before hook right after Nemo is launched or add as a part of Nemo callback as shown below,
'baseDiris the path to your end to end suite, e.g.
"baseDir": "/acceptance/",or
"baseDir": "/functional/",`
function _cbNemo(err) {
return nemoPage({nemo: world.nemo, baseDir: world.nemo._config.get('baseDir')})
.then(callback) // success callback
.catch(callback); // error callback
}
nemo.page.{pageName}, e.g. nemo.page.loginPage
Refer to the complete E2E Example here. Nemo Page object is initialized here