Skip to content

Instantly share code, notes, and snippets.

@carlcrott
Last active August 29, 2015 14:00
Show Gist options
  • Save carlcrott/11065326 to your computer and use it in GitHub Desktop.
Save carlcrott/11065326 to your computer and use it in GitHub Desktop.
lilith@lilith:~/javascript_projects/junk$ phantomjs ladybug_screencap.js
TypeError: 'undefined' is not a function (evaluating 'this.login.bind(this)')
http://localhost/www/js/angularfire.min.js:1
http://localhost/www/js/angularfire.min.js:1
http://localhost/www/js/service.login.js:14
http://localhost/www/js/app.js:34
http://localhost/www/js/angular.min.js:34 in d
http://localhost/www/js/angular.min.js:36
lilith@lilith:~/javascript_projects/junk$
//initialize
var page = require('webpage').create();
page.settings.userAgent = 'Mozilla/5.0 (X11; Linux x86_64)';
page.open('http://localhost/www/', function() {
page.render('ladybug.png');
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment