Skip to content

Instantly share code, notes, and snippets.

@baudehlo
Created October 9, 2012 21:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baudehlo/3861598 to your computer and use it in GitHub Desktop.
Save baudehlo/3861598 to your computer and use it in GitHub Desktop.
Scotia bank test
var page = require('webpage').create();
page.onResourceReceived = function (req) {
if (req.stage !== "end") return;
console.log("Resource: ");
console.log(JSON.stringify(req));
}
page.open('https://www2.scotiaonline.scotiabank.com/online/authentication/authentication.bns',
function () {
console.log("Opened...");
page.render('/tmp/Scotia.png');
phantom.exit()
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment