nemo-pageobjects

1.0.0 • Public • Published

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

1. Install

    
    npm install nemo-pageobjects --save-dev
    

2. Add to your suite

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
        }

3. Access your pages in your suite

    nemo.page.{pageName}, e.g. nemo.page.loginPage

Refer to the complete E2E Example here. Nemo Page object is initialized here

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i nemo-pageobjects

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • kushang