Created
January 13, 2016 19:59
-
-
Save lambdabaa/3eb5addbee82d5fdfb12 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
waitForFullyLoaded: function() { | |
return this.client.findElement('body').then(function(body) { | |
// XXX: Need to hack client.waitFor to handle promises | |
return this.client.waitFor(function() { | |
return body.getAttribute('ready-state').then(function(readyState) { | |
return readyState === 'fullyLoaded'; | |
}); | |
}); | |
}.bind(this)); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment