Wraith doesn't progress beyond screenshot of the test site
kittyPillai opened this issue · comments
kittyPillai commented
Hello,
I am new to Wraith and have installed version 4.0.1.
Anytime I ran the command "wraith capture test.yaml" I can see that both the sites have loaded, however screenshots of only one site gets captured and execution does not proceed beyond this point. No error messages also get displayed. Can you please let me know what is wrong.
Reporting a problem? Please describe the issue above, and complete the following checklist so that we can help you more quickly.
Issue checklist:
-
[Yes ] I have validated my config file against YAML Validator to make sure it is valid YAML.
-
[Yes ] I have run the
wraith info
command and pasted the output below:
paste results here
DEBUG: #################################################
DEBUG: Command run: info
DEBUG: Wraith version: 4.0.1
DEBUG: Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
DEBUG: ImageMagick: Version: ImageMagick 6.9.9-3 Q8 x64 2017-07-24 http://www.imagemagick.org
DEBUG: PhantomJS version: 1.9.8
DEBUG: CasperJS version: CasperJS not installed
DEBUG: #################################################
- [Yes ] I have run the command in verbose mode (by adding
verbose: true
to my config) and pasted the output below:
paste results here
C:\Users\kirti.vm\Documents\Wraith>wraith capture test.yaml
DEBUG: #################################################
DEBUG: Command run: capture test.yaml
DEBUG: Wraith version: 4.0.1
DEBUG: Ruby version: ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
DEBUG: ImageMagick: Version: ImageMagick 6.9.9-3 Q8 x64 2017-07-24 http://www.imagemagick.org
DEBUG: PhantomJS version: 1.9.8
DEBUG: CasperJS version: CasperJS not installed
DEBUG: #################################################
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
DEBUG: phantomjs 'C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/wraith-4.0.1/lib/wraith/javascript/phantom.js' 'http://www.thomson.co.uk/' '320,600' 'shots/home/MULTI_phantomjs_Live.png' 'body' 'C:/Users/kirti.v
m/Documents/Wraith/javascript/disable_javascript--phantom.js' 'false'
DEBUG: phantomjs 'C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/wraith-4.0.1/lib/wraith/javascript/phantom.js' 'http://st3.thomsonprjuat.co.uk/' '320,600' 'shots/home/MULTI_phantomjs_SIT.png' 'body' 'C:/Users/ki
rti.vm/Documents/Wraith/javascript/disable_javascript--phantom.js' 'false'
Loading http://st3.thomsonprjuat.co.uk/ at dimensions: 320x1500
Loading http://www.thomson.co.uk/ at dimensions: 320x1500
Snapping http://st3.thomsonprjuat.co.uk/ at: 320x1500
Resizing http://st3.thomsonprjuat.co.uk/ to: 600x1500
Snapping http://st3.thomsonprjuat.co.uk/ at: 600x1500
- [Yes ] I have pasted the contents of my config file below:
paste config here
==================================================
##########
### NB: the paths in this YAML config are relative to the root of the Wraith directory,
### as `bundle exec rspec` is run from the root.
##########
#Headless browser option
browser:
phantomjs: "phantomjs"
# we've deliberately left out the snap_file
resize_or_reload: resize
# Type the name of the directory that shots will be stored in
directory: 'shots'
# Add only 2 domains, key will act as a label
domains:
Live: "http://www.thomson.co.uk"
SIT: "http://st3.thomsonprjuat.co.uk"
#Type screen widths below, here are a couple of examples
screen_widths:
- 320
- 600
#Type page URL paths below, here are a couple of examples
paths:
home: /
# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
before_capture: 'javascript/disable_javascript--phantom.js'
#Amount of fuzz ImageMagick will use
fuzz: '20%'
verbose: true
kittyPillai commented
It is working. Only real slowly. Has taken nearly 7 hours to run comparison of one page.