Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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