Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cucumber-wd-plugin

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cucumber-wd-plugin

A cucumber listener with wd bindings

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

cucumber-wd-plugin

Provide this plugin with a reference to the cucumber runtime and it will initialize a selenium session given a set of configuration data and automatically close your session after cucumber completes

Configuration

see lib/defaultConfig.js for an example config

If you are using SauceLabs be sure to set your SAUCE_USERNAME and SAUCE_ACCESS_KEY in your environment variables or pass them in your config. See wd's readme for details.

Usage

As always, you'll need to install cucumber-wd-plugin as a dependency

  npm install cucumber-wd-plugin --save

Then in a step definition (e.g. step_definitions/worldDefinition.js) register the plugin as a listener and before each scenerio make sure the World has access to the browser.

  var browserPlugin = require('cucumber-wd-plugin')(config)

  function worldDefinition() {
    this.registerListener(browserPlugin)

    this.Before(function(callback) {
      this.browser = browserPlugin.browser
      callback()
    })
  }

See the node-bdd-example project for usage

Support

cucumber-js 0.3.2 provides plugin support through the use of registerListener with the integration of this pull request.

Keywords

FAQs

Package last updated on 02 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc