Skip to content

Instantly share code, notes, and snippets.

@cole-gillespie
Created September 4, 2015 13:26
Show Gist options
  • Save cole-gillespie/4112aa6800d210095e28 to your computer and use it in GitHub Desktop.
Save cole-gillespie/4112aa6800d210095e28 to your computer and use it in GitHub Desktop.
driver.executeAsyncScript(function() {
var callback = arguments[arguments.length - 1];
window.onload = function() {
callback()
};
}).then(function() {
//do stuff here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment