Skip to content

Instantly share code, notes, and snippets.

@lambdabaa
Created January 13, 2016 19:59
Show Gist options
  • Save lambdabaa/3eb5addbee82d5fdfb12 to your computer and use it in GitHub Desktop.
Save lambdabaa/3eb5addbee82d5fdfb12 to your computer and use it in GitHub Desktop.
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