Skip to content

Instantly share code, notes, and snippets.

@JKring
Created August 17, 2014 03:17
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 JKring/b3d7498572a76d13d363 to your computer and use it in GitHub Desktop.
Save JKring/b3d7498572a76d13d363 to your computer and use it in GitHub Desktop.
moar testing
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.open("http://www.washingtonpost.com/gog/talk-to-us.html#submit-a-listing", function(status) {
if ( status === "success" ) {
page.includeJs("http://code.jquery.com/jquery-1.7.1.min.js", function() {
page.evaluate(function() {
$("#listing-type-event").click();
});
page.render('jquery-works.png');
phantom.exit();
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment