PhantomJS is a minimalistic, headless, WebKit-based, JavaScript-driven
tool.

It has native support for different web technologies: DOM handling,
CSS selector, JSON, Canvas, SVG, and of course JavaScript.

WWW: http://www.phantomjs.org/