Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including nightwatch-patch-1504 with all npm packages installed. Try it out:

var nightwatchPatch1504 = require("nightwatch-patch-1504")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

nightwatch-patch-1504 v0.9.17

A node.js bindings implementation for selenium 2.0/webdriver

Nightwatch

UI automated testing framework powered by Node.js. It uses the Selenium WebDriver API.

Build Status NPM version Coverage Status


Homepage | Getting Started | Developer Guide | API Reference | Changelog

Selenium WebDriver standalone server

Nightwatch works with the Selenium standalone server so the first thing you need to do is download the selenium server jar file selenium-server-standalone-2.x.x.jar from the Selenium releases page: https://selenium-release.storage.googleapis.com/index.html

Install Nightwatch

Install Node.js and then:

$ git clone https://github.com/nightwatchjs/nightwatch.git
$ cd nightwatch
$ npm install

Run tests

The tests for Nightwatch are written using Mocha exports interface so they can also be run with Nightwatch itself.

To run the unit tests using mocha, do:

$ npm test

To run the unit tests using Nightwatch, do:

$ npm run unit-tests

To check test coverage, run the command:

$ npm run mocha-coverage

and then open the generate file coverage.html in your browser.

Discuss

The Mailing List/Google Group is the most appropriate tool for Nightwatch related discussions. In addition, there is a StackOverflow Nightwatch.js tag at your disposal and Twitter.

Setup Guides

Specific WebDriver setup guides can be found on the Docs website. Legacy Selenium drivers setup guides along with debugging instructions can be found on the Wiki.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free