by mootothemax · 12y ago · 0 comments
Use http://casperjs.org scripts, and then choose the best engine at runtime.
For example, need screenshots? Tell CasperJS to use SlimerJS.
Looking for faster rendering to HTML? Tell CasperJS to use PhantomJS.
[0] http://phantomjs.org/screen-capture.html
[1] http://docs.casperjs.org/en/latest/modules/casper.html#captu...
Sorry, that's my fault for not going into more detail :)
The big issue I have with PhantomJ's screenshots is that it doesn't support web fonts, and so pages don't render correctly.
* with minor changes, as documented with SlimerJS