These helper functions can be used with WDIO.
This project uses node and npm. Go check them out if you don't have them locally installed.
npm install wdio-helpers --save
import {load, click} from 'wdio-helpers';
describe ('Test Suite', () => {
it ('Test1', () => {
load('https://www.google.com');
click('#lst-ib');
});
});
var helpers = require('wdio-helpers');
describe ('Test Suite', function() {
it ('Test1', function() {
helpers.load('https://www.google.com');
helpers.click('#lst-ib');
});
});
For a working demo see here.
wdio-helpers | WebdriverIO |
---|---|
V 1.x | Upto 4.x |
V 2.x | 5.x and 6.x |
There are lot of helpers to be written. Feel free to contribute to this repo. For more help reach out to me