wd-selenium-hooks

0.1.0 • Public • Published

wd-selenium-hooks

Webdriver configuration hooks for starting and stopping selenium standalone server with PhantomJS.

Build Status Code Climate js-standard-style

npm install wd-selenium-hooks --save-dev

You can also download the files manually.

npm stats

npm NPM downloads Dependency Status

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

Licenses

GitHub license

Package Sidebar

Install

npm i wd-selenium-hooks

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • wilmoore