bbc / wraith

Wraith — A responsive screenshot comparison tool

Home Page:http://bbc-news.github.io/wraith/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't open javascript/snap.js'

PavanBihola opened this issue · comments

Firing wraith history configs/XXXX.yaml from command line throws following error :

Can't open ''D:/WraithProject/wraith-master/Temp/javascript/snap.js''
WARN: Failed to capture image actual/accessories_gm_landing/320_phantomjs_production.png on attempt number 1 of 5

For this below configuration I have used in YAML file. snap.js file do exist on location D:/WraithProject/wraith-master/Temp/javascript/snap.js' however message shows that it can't be opened.

YAML File :

#Headless browser option
phantomjs_options: --ssl-protocol=tlsv1
browser:
phantomjs: "phantomjs"

slimerjs: "slimerjs"

#If you want to have multiple snapping files, set the file name here
snap_file: 'javascript/snap.js'

The name of the directory that shots will be stored in

directory: actual
history_dir: expected/accessories

Add only 2 domains, key will act as a label

domains:
production: "https://www.cricbuzz.com/"

#Type screen widths below, here are a couple of examples
screen_widths:

  • 320

- 600

- 768

  • 1024

#Type page URL paths below, here are a couple of examples
paths:

URLs

page_landing: /cricket-news

#Amount of fuzz ImageMagick will use
fuzz: '20%'

#Set the number of days to keep the site spider file
spider_days:

  • 10

#Choose how results are displayed, by default alphanumeric. Different screen widths are always grouped.
#alphanumeric - all paths (with, and without, a difference) are shown, sorted by path
#diffs_first - all paths (with, and without, a difference) are shown, sorted by difference size (largest first)
#diffs_only - only paths with a difference are shown, sorted by difference size (largest first)
mode: diffs_first

threshold: 0