http://phantomjs.org/html
PhantomJS is an optimal solution for:web
Page automationless
Access webpages and extract information using the standard DOM API, or with usual libraries like jQuery.orm
Programmatically capture web contents, including SVG and Canvas. Create web site screenshots with thumbnail preview.get
Run functional tests with frameworks such as Jasmine, QUnit, Mocha, WebDriver, etc.io
Monitor page loading and export as standard HAR files. Automate performance analysis using YSlow and Jenkins.function