wdio-helper

1.1.3 • Public • Published

WdioPageHelper

This library is a Helper for WebDriverIO Tests.

Usage

To install, execute the command:

 npm install wdio-helper --save-dev

PAGE

First, import the module into your PageObject and extends Page:

const Page = require('wdio-helper');

class MyNewPage extends Page{
  ...
}
  • clickOn
super.clickOn(element, timetout)

This method receives an element to click and a timeout (optional, default is 5000)

  • setValue
super.setValue(element, value, timeout)

This method receives an element, a value to set and a timeout (optional, default is 5000)

  • getValue
super.getValue(element, timeout)

This method return a value of a element and receives an element and a timeout (optional, default is 5000)

  • isElementVisible
super.isElementVisible(element, reverse,  timeout)

This method receives an element, boolean parameter reverse (if true it waits for the opposite, it's optional) and a timeout (optional, default is 5000)

Package Sidebar

Install

npm i wdio-helper

Weekly Downloads

1

Version

1.1.3

License

ISC

Unpacked Size

2.81 kB

Total Files

4

Last publish

Collaborators

  • cassiocafs