by maxgalbu

Nightwatch.js custom commands and assertions

130 Stars 35 Forks Last release: over 2 years ago (1.1.1) MIT License 121 Commits 7 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Nightwatch custom commands and assertions

Build Status npm version

These are some commands and assertion I use when I'm testing with nightwatch.js and selenium.

How to use these things?

You can install it using npm:

npm install nightwatch-custom-commands-assertions --save-dev

Then, open the nightwatch.json file in your editor (or create it if it doesn't exist) and edit the

keys so they look like this:
    ... //your config

"custom_commands_path" : "node_modules/nightwatch-custom-commands-assertions/js/commands",
"custom_assertions_path" : "node_modules/nightwatch-custom-commands-assertions/js/assertions",

... //your config again


Now you should be able to use these commands/assertions when you call

nightwatch --test

Alternative ways of installing

  • Go into your
    folder (or where your nightwatch.json is) and do:
  git clone
  • Download the zipped repository here and extract it wherever you want

You then need to open your nightwatch.json and edit

according to where you cloned or extracted the repository.



List of commands

See the docs folder

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.