Created
January 9, 2019 14:08
-
-
Save matyax/60a1075ae405081cdf458a508f0c98fe to your computer and use it in GitHub Desktop.
Slow down Protractor execution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var origFn = browser.driver.controlFlow().execute; | |
browser.driver.controlFlow().execute = function() { | |
var args = arguments; | |
// queue 100ms wait | |
origFn.call(browser.driver.controlFlow(), function() { | |
return protractor.promise.delayed(100); | |
}); | |
return origFn.apply(browser.driver.controlFlow(), args); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment