wdio-chai-plugin
v0.0.2
Published
A WebdriverIO plugin. Adapter for Chai assertion library
Downloads
7
Maintainers
Readme
wdio-chai-plugin
A WebdriverIO plugin. Adapter for Chai assertion library
Installation
The easiest way is to keep wdio-chai-plugin
as a dependency
in your package.json
.
{
"dependencies": {
"wdio-chai-plugin": "^0.0.1"
}
}
You can simple do it by:
npm install wdio-chai-plugin --save-dev
Configuration
Following code shows the default wdio
test runner configuration...
// wdio.conf.js
let chai = require('wdio-chai-plugin');
/** @namespace browser */
module.exports = {
// ...
before: function (capabilities, specs) {
chai(browser);
},
// ...
};
Usage
describe('Default page', function () {
it('Test case', function () {
var url = browser.getUrl();
url.should.be.equal('https://example.com');
});
});
====
For more information on WebdriverIO
see the homepage.