wd-selenium-hooks
v0.1.0
Published
Webdriver configuration hooks for starting and stopping selenium standalone server with PhantomJS.
Downloads
2
Maintainers
Readme
wd-selenium-hooks
Webdriver configuration hooks for starting and stopping selenium standalone server with PhantomJS.
npm install wd-selenium-hooks --save-dev
You can also download the files manually.
npm stats
Usage
In your wdio.config.js
add the following:
var selenium = require('wd-selenium-hooks')
exports.config = {
onPrepare: function () {
selenium.onPrepare(this)
},
onComplete: function () {
selenium.onComplete(this)
}
}
API
.onPrepare(this)
Starts the selenium server.
arguments
object (this)
Reference to the configuration.
returns
(Undefined)
.onComplete(this)
Stops the selenium server.
arguments
object (this)
Reference to the configuration.
returns
(Undefined)
Reference
Alternatives
Contributing
SEE: contributing.md