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