Requirements

It's up to you to decide which browser engine you want to run it against. PhantomJS and SlimerJS are the browsers that capture the screenshots, CasperJS is a layer on top of these to aid in target selectors for capturing a particular component.

PhantomJS is built on top of Webkit and JavascriptCore (like Safari). SlimerJS is built on top of Gecko and SpiderMonkey (like Firefox).

PLEASE NOTE - Wraith doesn't support SlimerJS out of the box. To use it, you'll need to specify your own snap file, and implement your own support for `before_capture` hooks, etc. If you'd like to see Wraith provide dedicated support for SlimerJS, please +1 the open issue on GitHub.

Install on OSX

On Mac OS X, the best way to install dependencies is if you have Homebrew.
It is the quickest way to install PhantomJS & ImageMagick.

Install on Ubuntu

Run with Docker

If you don't want to physically install Wraith, or if you want to run automated Wraith tests on CI, we strongly recommend you run Wraith inside Docker to guarantee consistency of available system fonts, etc.
Once Docker is installed, you should be able to run Wraith commands through your Docker image as follows: