No such file or directory @ rb_sysopen - spider.txt (Errno::ENOENT)
kmadan92 opened this issue · comments
I am getting following error on running wraith capture configs/capture.yaml
DEBUG: #################################################
DEBUG: Command run: capture configs/capture.yaml
DEBUG: Wraith version: 4.2.4
DEBUG: Ruby version: ruby 2.6.3p62 (2019-04-16 revision 67580) [x64-mingw32]
DEBUG: ImageMagick: Version: ImageMagick 7.0.8-58 Q16 x64 2019-07-30 http://www.imagemagick.org
DEBUG: PhantomJS version: 2.1.1
DEBUG: chromedriver version: ChromeDriver 76.0.3809.68 (420c9498db8ce8fcd190a954d51297672c1515d5-refs/branch-heads/3809@{#864})
DEBUG: CasperJS version: CasperJS not installed
DEBUG: #################################################
Config validated. No serious issues found.
Traceback (most recent call last):
15: from C:/Ruby26-x64/bin/wraith:23:in <main>' 14: from C:/Ruby26-x64/bin/wraith:23:in
load'
13: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/bin/wraith:5:in <top (required)>' 12: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/base.rb:466:in
start'
11: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor.rb:387:in dispatch' 10: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/invocation.rb:126:in
invoke_command'
9: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/thor-0.20.3/lib/thor/command.rb:27:in run' 8: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/cli.rb:120:in
capture'
7: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/helpers/utilities.rb:4:in within_acceptable_limits' 6: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/cli.rb:123:in
block in capture'
5: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/cli.rb:59:in setup_folders' 4: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/helpers/utilities.rb:4:in
within_acceptable_limits'
3: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/cli.rb:61:in block in setup_folders' 2: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/folder.rb:63:in
create_folders'
1: from C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/folder.rb:26:in spider_paths' C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/wraith-4.2.4/lib/wraith/folder.rb:26:in
read': No such file or directory @ rb_sysopen - spider.txt (Errno::ENOENT)
Below s my capture.yaml file:
##############################################################
##############################################################
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:
my_site: "http://www.example.com"
my_other_site: "http://www.test.example.com"
(required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
#home: /
#about: /about
#contact: /get-in-touch
(required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
- 320
- 600x768
- 768
- 1024
- 1280
(optional) JavaScript file to execute before taking screenshot of every path. Default: nil
before_capture: 'javascript/disable_javascript--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: '20%'
(optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 5
(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
(optional) Set the number of threads to use when saving images. Raising this value can improve performance, but very high
values can lead to server connection issues. Set to around 1.5 the available CPU cores for best performance. Default: 8
threads: 8
verbose: true
Capture.yaml file:
##############################################################
##############################################################
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:
my_site: "http://www.example.com"
my_other_site: "http://www.test.example.com"
(required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
#home: /
#about: /about
#contact: /get-in-touch
(required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
- 320
- 600x768
- 768
- 1024
- 1280
(optional) JavaScript file to execute before taking screenshot of every path. Default: nil
before_capture: 'javascript/disable_javascript--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: '20%'
(optional) The maximum acceptable level of difference (in %) between two images before Wraith reports a failure. Default: 0
threshold: 5
(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
(optional) Set the number of threads to use when saving images. Raising this value can improve performance, but very high
values can lead to server connection issues. Set to around 1.5 the available CPU cores for best performance. Default: 8
threads: 8
verbose: true