Compare two web pages for equality. If not equal, a diff image is created.
##Install
Install node-canvas and all it's dependencies i.e Cairo
wget https://raw.githubusercontent.com/LearnBoost/node-canvas/master/install -O - | sh
Install node packages
npm install
Setup your config file (options explained in detail, in the next section)
protocol: 'https',
rootUrls: ['qa1.boat-ed.com/', 'www.boat-ed.com/'],
pages: ['texas/'],
viewport: {
width: 1200,
height: 600
},
screenshotFolder: 'screenshots',
logfile: 'log'
Then run the app
node app.js
Either https
or http
.
Specify two root urls without the protocol.
Pages that will be appended to the root url and compared. Trailing slash on the page is required if that page redirects to another page e.g to the https version of the page. PhantomJS does not handle redirects very well.
Specify the height and the width of the viewport.
Equals will take screenshots and store them in the folder you specify within the current directory.
All errors are logged to this file within the current directory.