Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In protractor test is there a way to wait between test run

Tags:

protractor

In protractor, is there a way to add explicit wait between each test run, which has the same effect as Thread.sleep in Java?

like image 745
chun2014 Avatar asked Aug 14 '14 06:08

chun2014


1 Answers

you could either start protractor in debug mode

run protractor debug debugging/yourConfigFile.js

and add browser.debugger(); in your test spec where you want it to stop

here a link to the debugging docs

or just use browser.sleep(valueInMilliSeconds);

like image 55
nilsK Avatar answered Sep 29 '22 06:09

nilsK