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

后端 未结 1 1075
旧时难觅i
旧时难觅i 2021-01-05 18:27

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条回答
  •  醉梦人生
    2021-01-05 18:56

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

    0 讨论(0)
提交回复
热议问题