Skip to content

Instantly share code, notes, and snippets.

@matyax
Created January 9, 2019 14:08
Show Gist options
  • Save matyax/60a1075ae405081cdf458a508f0c98fe to your computer and use it in GitHub Desktop.
Save matyax/60a1075ae405081cdf458a508f0c98fe to your computer and use it in GitHub Desktop.
Slow down Protractor execution
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