New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nemo-pageobjects

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nemo-pageobjects

page objects for nemo.js

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

pageobjects

FAQs

Package last updated on 14 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts