wd-selenium-hooks

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

Usage no npm install needed!

<script type="module">
  import wdSeleniumHooks from 'https://cdn.skypack.dev/wd-selenium-hooks';
</script>

README

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