Skip to content

Latest commit

 

History

History

headless

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Headless Browsers

The library, eschewing unstable and nascent ECMAScript features, plays nicely with most headless browsers. This demo shows a few common headless scenarios.

PhantomJS

This was tested in PhantomJS 2.1.1, installed using the node module:

$ npm install -g phantomjs
$ phantomjs phantomjs.js

wkhtmltopdf

This was tested in wkhtmltopdf 0.12.4, installed using the official binaries:

$ wkhtmltopdf --javascript-delay 20000 http://oss.sheetjs.com/js-xlsx/tests/ test.pdf

Puppeteer

This was tested in puppeteer 0.9.0 and Chromium revision 494755:

$ npm install puppeteer
$ node puppeteer.js

Since the main process is node, the read and write features should be placed in the webpage. The dist versions are suitable for web pages.

SlimerJS

This was tested in SlimerJS 0.10.3 and FF 52.0, installed using brew on OSX:

$ brew install slimerjs
$ slimerjs slimerjs.js

Analytics