A collection of assertions, commands and common step tests used with Nightwatch.js
Assert that the querystring contains a certain key
module.exports = {
"querystring contains foo " : function (client) {
client.assert.querystringContainsKey('foo');
}
}
Parameters
-
key
string [description]
Assert a querystring key value
module.exports = {
"querystring foo is bar " : function (client) {
client.assert.querystringKeyIs('foo', 'bar')
}
}
Parameters
executes command
Parameters
-
url
[type] [description] -
milliseconds
[type] [description] -
timeout
[type] [description] -
messages
[type] [description] -
callback
Function [description]
Returns [type] [description]
Waiting for url expected
Parameters
-
url
string [url expected to contain] -
milliseconds
number [total time until command times out] -
timeout
number [time to wait before command starts polling the URL] -
messages
Object [message output] -
callback
Function [callback]
Returns [type] [client]
declaritive answers processing
Parameters
-
answer
[type] [description]
Returns [type] [description]