Skip to content

Instantly share code, notes, and snippets.

@swarad07
Created May 30, 2018 10:39
Show Gist options
  • Save swarad07/b6842d9e8b513dcc627b43a9f966c031 to your computer and use it in GitHub Desktop.
Save swarad07/b6842d9e8b513dcc627b43a9f966c031 to your computer and use it in GitHub Desktop.
// ######################################################
// This is an example module provided by Wraith.
// Feel free to amend for your own requirements.
// ######################################################
module.exports = function (phantom, ready) {
// make Wraith wait a bit longer before taking the screenshot
setTimeout(ready, 10000); // you MUST call the ready() callback for Wraith to continue
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment