Created
May 1, 2015 23:32
-
-
Save AdamTReineke/16227d709eaa1403ae26 to your computer and use it in GitHub Desktop.
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
return browser.sleep(1) | |
.then(function() { | |
return browser.setWindowSize(500,500); | |
}) | |
.then(function() { | |
return browser.sleep(5000); | |
}) | |
.then(function() { | |
return browser.setWindowSize(500, 800); | |
}) | |
.then(function() { | |
return browser.sleep(5000); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
browser.sleep is simply setTimeout that returns a promise - https://github.com/admc/wd/blob/08c69af4ed3c3c2a622ec1d414bbac7d072fbcbe/lib/commands.js#L2338