I am a PhantomJs newbie. Just checked a similar post on this site. My question is why \'foo\' is not logged to console or printed?
var page = require(\'webpa
There were some problems in the past with console logging, but with the current version on phantomjs (1.9.8), you can do:
page.onConsoleMessage = function (msg) {
console.log(msg);
};
then fire away your console.log
s in the evaluate
's callback:
page.evaluate(function() {
console.log("some logged message");
});