-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Method for slowing down the tests #2986
Comments
Could you please update your request with the information for feature requests in the issue template? I don't see how this is a dramatic improvement over |
@NickTomlin Please see the revised version. Basically, as a developer we can definitely do browser.pause() to debug, but in a real-life situation where you would have to demo it to others, it is more convenient to have a version that automatically goes through each statement with delays in-between. If protractor doesn't want to offer an in-house solution, do you know how it could be done manually? Thanks! |
@philoniare you can record video and slow down playback instead |
var origFn = browser.driver.controlFlow().execute; This code worked out for me, add it in your beforeEach and you'll notice protractor runs a little slower, allowing anyone to see what's happening :) |
This might be a nice thing to include in Blocking Proxy @mgiambalvo |
This should be covered by angular/blocking-proxy#14 |
above provided cod is not working at my end getting below error: |
Reasons for adopting a new feature:
Protractor needs a method for specifying a delay between changing of each visual element so that QA engineers and other people not familiar with Protractor, can observe what is happening at each step. It is possible to enter manual browser.sleep() everywhere in your code, but for a few hundred lines of tests, it would mean a lot of code duplication. It would be great if we could just set a "speed factor" in the configuration and have the tests run in the browser in a reasonable speed that it can be observed by a third-party without knowledge of the code.
Is this a breaking change?
No, it would just be an additional optional functional that doesn't break anything.
[Edited to conform to feature request template]
The text was updated successfully, but these errors were encountered: