nightwatch.js - How to use retryAssertionTimeout in nightwatchjs -


in nightwatch api reference (http://nightwatchjs.org/api#assertions) show can use retry assertions, not how define it. path global variables set in nightwatch.json:

 "globals_path" : "data/ftm_data.js", 

in ftm_data.js defined:

retryassertiontimeout = 2000 module.exports = { url:'https://10.99.8.81', userstocreate:[   {..... 

and on. doesn't work.

can me?

thank you!

the

retryassertiontimeout = 2000

should in

module.exports = {

module.exports = { retryassertiontimeout: 2000, url:'https://10.99.8.81', userstocreate:[ {..... };

additionaly, can configure in nightwatch.json. (further reading http://nightwatchjs.org/guide#test-settings there. "globals" in test settings place should then, per environment)

if defined in nightwatch.json win!

also careful: if use retryassertiontimeout globally, define in assertion, win.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -