wdio-helper
v1.1.3
Published
This library is a Helper for WebDriverIO Tests
Downloads
1
Maintainers
Readme
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)