Error with page on HTTPS and failed to capture image
kkusalavan opened this issue · comments
#### Issue checklist:
-
YES I have validated my config file against YAML Validator to make sure it is valid YAML.
-
YES I have run the command in verbose mode (by adding
verbose: true
to my config) and pasted the output below:
DEBUG: #################################################
DEBUG: Command run: capture hesite-tp
DEBUG: Wraith version: 3.2.1
DEBUG: Ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
DEBUG: ImageMagick: Version: ImageMagick 7.0.3-4 Q16 x64 2016-10-10 http://www.imagemagick.org
DEBUG: PhantomJS version: 1.9.2
DEBUG: CasperJS version: CasperJS not installed
DEBUG: #################################################
DEBUG:
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
DEBUG: phantomjs --ignore-ssl-errors=true 'C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/wraith-3.2.1/lib/wraith/javascript/phantom.js' 'https://www.kaplanpathways.com/' '1280X5000' 'shots-he/homepage/1280X5000_phantomjs_prod.png' 'body' 'false' 'false'
Loading https://www.kaplanpathways.com/ at dimensions: 1280x5000
Loading https://test-hkiheww.kapintdc.com/ at dimensions: 1280x5000
Loading https://www.kaplanpathways.com/privacy at dimensions: 1280x5000
Loading https://test-hkiheww.kapintdc.com/privacy at dimensions: 1280x5000
Error with page https://www.kaplanpathways.com/
WARN: Failed to capture image shots-he/homepage/1280X5000_phantomjs_prod.png on attempt number 1 of 5
Loading https://www.kaplanpathways.com/modern-slavery-statement at dimensions: 1280x5000
Error with page https://test-hkiheww.kapintdc.com/
WARN: Failed to capture image shots-he/homepage/1280X5000_phantomjs_test.png on attempt number 1 of 5
Error with page https://test-hkiheww.kapintdc.com/privacy
# (required) The engine to run Wraith with. Examples: 'phantomjs', 'casperjs', 'slimerjs'
browser: "phantomjs"
# Phantomjs to ignore https
phantomjs_options: "--ignore-ssl-errors=true"
#If you want to have multiple snapping files, set the file name here
# To capture the full height of a page
#before_capture: javascript/wait--phantom.js
# (required) The domains to take screenshots of.
domains:
prod: "https://www.kaplanpathways.com"
test: "https://test-hkiheww.kapintdc.com"
# (required) The paths to capture. All paths should exist for both of the domains specified above.
paths:
homepage: "/"
privacy: "/privacy"
# (required) Screen widths (and optional height) to resize the browser to before taking the screenshot.
screen_widths:
# - 320
# - 600x768
# - 768
# - 1024
- 1280X5000
# (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-he'
# (optional) Choose to run Wraith in verbose mode, for easier debugging. Default: false
verbose: true
# (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: 'basic_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
HTTPS is a known issue. Please see #308 for details. Sorry we are not able to provide a fix at the moment.