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.
- Because I or no one can't fork it.
- There is no development for a long time.
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)
}
}
Starts the selenium server.
object (this)
Reference to the configuration.
(Undefined)
Stops the selenium server.
object (this)
Reference to the configuration.
(Undefined)
SEE: contributing.md