Skip to content

Instantly share code, notes, and snippets.

Avatar

Shavit shavit

  • USA
View GitHub Profile
@ecin
ecin / phantomjs_facebook.js
Created Apr 23, 2012
Log into Facebook with phantomJS
View phantomjs_facebook.js
console.log("got here");
var page = require('webpage').create();
page.onConsoleMessage = function(msg) {
console.log(msg);
};
page.open("http://facebook.com", function(status) {
if ( status === "success" ) {