Skip to content

kalkomey/equals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

equals

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

Usage

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

Options

protocol: string

Either https or http.

rootUrls: array

Specify two root urls without the protocol.

pages: array

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.

viewport: array

Specify the height and the width of the viewport.

screenshotFolder: string

Equals will take screenshots and store them in the folder you specify within the current directory.

logfile: string

All errors are logged to this file within the current directory.

About

Compare two web pages for equality

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •