You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Wraith periodically gives errors. It hangs on the last URL when I run wraith capture configs/capture.yaml. I Ctrl + C out of that, and run wraith generate_gallery configs/capture.yaml. That returns the following: "/var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:124:in `*': nil can't be coerced into Fixnum (TypeError)".
Issue checklist:
[+] I have validated my config file against YAML Validator to make sure it is valid YAML.
[+] I have run the wraith info command and pasted the output below:
$ wraith generate_gallery configs/capture.yaml
GENERATING GALLERY
/var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:124:in `*': nil can't be coerced into Fixnum (TypeError)
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:124:in `block in sort_by_diffs'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:122:in `each'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:122:in `sort_by'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:122:in `sort_by_diffs'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:114:in `sorting_dirs'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:45:in `match'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:31:in `parse_directories'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:142:in `generate_gallery'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/cli.rb:114:in `block in generate_gallery'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/helpers/utilities.rb:4:in `within_acceptable_limits'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/cli.rb:111:in `generate_gallery'
from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
from /var/lib/gems/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
from /var/lib/gems/2.3.0/gems/wraith-4.0.1/bin/wraith:5:in `<top (required)>'
from /usr/local/bin/wraith:23:in `load'
from /usr/local/bin/wraith:23:in `<main>'
[+] I have pasted the contents of my config file below:
$ cat capture.yaml
##############################################################
##############################################################
# This is an example configuration provided by Wraith.
# Feel free to amend for your own requirements.
# ---
# This particular config is intended to demonstrate how
# to use Wraith in 'capture' mode, which is best suited to
# comparing a test and live version of the same website.
#
# `wraith capture capture.yaml`
#
##############################################################
##############################################################
# (required) The engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "phantomjs"
# (required) The domains to take screenshots of.
domains:
current: "http://zivizi.com"
new: "http://staging.zivizi.com"
# (required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
telomere_post: /2016/10/24/telomere-post
zdermal_technology: /2016/10/24/zdermal-technology
whats_in_a_name: /2016/10/24/whats-in-a-name
stemcell_post: /2016/10/24/stemcell-post/
zlife_experience_post: /2016/10/24/zlife-experience-post/
2017_zivizi_summit: /2013/10/24/2017-zivizi-summit/
# (required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
- 320x480
- 320x568
- 360x640
- 768x1024
- 800x1280
- 980x1280
- 1280x600
- 1920x900
# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
#before_capture: 'javascript/wait--phantom.js'
# (required) The directory that your screenshots will be stored in
directory: 'shots'
# (required) Amount of fuzz ImageMagick will use when comparing images. A higher fuzz makes the comparison less strict.
fuzz: '5%'
# (optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 0
# (optional) Specify the template (and generated thumbnail sizes) for the gallery output.
gallery:
template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
thumb_width: 200
thumb_height: 200
# (optional) Choose which results are displayed in the gallery, and in what order. Default: alphanumeric
# Options:
# alphanumeric - all paths (with or without a difference) are shown, sorted by path
# diffs_first - all paths (with or 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)
# Note: different screen widths are always grouped together.
mode: diffs_first
# run command in verbose mode
verbose: true
The text was updated successfully, but these errors were encountered:
Wraith periodically gives errors. It hangs on the last URL when I run wraith capture configs/capture.yaml. I Ctrl + C out of that, and run wraith generate_gallery configs/capture.yaml. That returns the following: "/var/lib/gems/2.3.0/gems/wraith-4.0.1/lib/wraith/gallery.rb:124:in `*': nil can't be coerced into Fixnum (TypeError)".
Issue checklist:
[+] I have validated my config file against YAML Validator to make sure it is valid YAML.
[+] I have run the
wraith info
command and pasted the output below:verbose: true
to my config) and pasted the output below:The text was updated successfully, but these errors were encountered: