Using Nightwatch for demo - slow down assertions by config Using Nightwatch for demo - slow down assertions by config selenium selenium

Using Nightwatch for demo - slow down assertions by config


You can add pauses in your suite wherever you want by using:

.pause(5000) // a pause for 5 seconds//or alternately.pause(this.timeout)

this.timeout can be set in your base-test-case.js

var timeout = 5000; // in your variable declarations

and then in that same file, on your base Class prototype you want:

  before: function (client) {    this.timeout = timeout;


browser.pause between clicks or setValue to have nice delay, anything between 100-300 miliseconds is good

http://nightwatchjs.org/api#pause