A cucumber listener with wd bindings


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

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.

See this example for usage

If you're using cucumber-js with grunt-cucumber like I am you'll want to take a look at this pull request