@bbc/nightwatch-commands
Advanced tools
Comparing version 1.0.8 to 1.0.9
{ | ||
"name": "@bbc/nightwatch-commands", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Basic Nightwatch Commands", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
# Keywords | ||
* [dontRunOn](#dontrunon) | ||
* [elementCount](#elementcount) | ||
@@ -10,22 +9,2 @@ * [getVersionNumbers](#getversionnumbers) | ||
## dontRunOn | ||
### Purpose | ||
Add the ability to exit a test early if we do not want to run on a specific environment | ||
### Parameters | ||
The ```dontRunOn(['environment'])``` keyword accepts an array of environments such as ```int```,```test``` or ```live```. | ||
### How it works | ||
It compares the array to the current environment it is testing against (Usually provided by the ```ENV``` variable in the ```.env``` file) | ||
### Example | ||
``` | ||
browser.page.<page>.dontRunOn(['live']); | ||
``` | ||
## elementCount | ||
@@ -32,0 +11,0 @@ |
6190
7
64
119