In protractor test is there a way to wait between

2019-02-17 15:37发布

问题:

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

回答1:

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);



标签: protractor