I'm trying to see if Zombie.js can be used as a headless browser rendering HTML snapshots for JavaScript heavy web apps (basically completely written apps in JavaScript using the framework OceanFront). This is to feed web crawlers utilizing the _escaped_fragment_ protocol.
However I can't find much information of this other than the .html() function. But in this simple scenario below, it will just show the actual index.html and not the full rendered html version of the DOM tree after the JavaScript files has been executed.
b.wait('done', function() {
console.log(b.errors);
b.dump();
console.log(b.html());
});
});
I tried with different wait times etc in case Zombie takes time to render the JavaScript.
Also the debug output show that all JavaScript files are properly downloaded in the correct order and got a 200 on the GET request.
Am I missing something here, or is Zombie not supposed to be able to take a snapshot of the actual DOM tree using the .html() function?
Thanks!