Skip to content

arpit2438735/webdriver-selenium-hooks

Repository files navigation

webdriver-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.

Copy of node-wd-selenium-hooks

  1. Because I or no one can't fork it.
  2. There is no development for a long time.
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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published