browser.explore() vs the old ways to debug in Prortractor

In Protractor 5.0.0, there was a new browser.explore() method added to the API.

How is it different from the previous browser.pause() or browser.debugger() or the browser.enterRepl() ? What is the preferred way to debug tests in Protractor?


Each one has their own advantages and disadvantages.

browser.explore() is pretty new one and also this has great advantage of debugging the test using the same script we are using in our test cases for eg.

element(by.cssContainingText('Username')).click();

browser.pause() is just allowing to type command 'c' Every time you press c like below in command prompt. You will be jumped to the next step/line/breakpoints to perform in the test script.

wd-debug> c 

browser.debugger() can be used from the browser console instead of using from command prompts where web driver is running. This will enable the user to use the client side scripts on the console.

The other one i haven't worked with may be once i try let you know that too.

链接地址: http://www.djcxy.com/p/94770.html

上一篇: 在Angular md中水平滚动表格

下一篇: browser.explore()与在Prortractor中调试的旧方法