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 you run chrome headless?

weseze opened this issue · comments

Is it possible to have the chromedriver implementation of wraith testing run headless. Meaning I can still use my computer to do other things.

For every test it is now focussing on the Chrome window and it is impossible for me to do anything else on my computer.

It was my understanding this would be default? I would like to avoid having to setup a VM for testing.

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:

DEBUG: #################################################
DEBUG:   Command run:        info
DEBUG:   Wraith version:     4.2.4
DEBUG:   Ruby version:       ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]
DEBUG:   ImageMagick:        Version: ImageMagick 7.0.10-10 Q16 x86_64 2020-04-28 https://imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776})
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:
DEBUG: #################################################
DEBUG:   Command run:        capture configs/capture.yaml
DEBUG:   Wraith version:     4.2.4
DEBUG:   Ruby version:       ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin13]
DEBUG:   ImageMagick:        Version: ImageMagick 7.0.10-10 Q16 x86_64 2020-04-28 https://imagemagick.org
DEBUG:   PhantomJS version:  2.1.1
DEBUG:   chromedriver version:  ChromeDriver 81.0.4044.69 (6813546031a4bc83f717a2ef7cd4ac6ec1199132-refs/branch-heads/4044@{#776})
DEBUG:   CasperJS version:   CasperJS not installed
DEBUG: #################################################
Config validated. No serious issues found.
Creating Folders
SAVING IMAGES
CROPPING IMAGES
DEBUG: Both images are exactly 485x1294 - no cropping required. (shots/home/320x1500_chrome_live.png, shots/home/320x1500_chrome_local.png)
COMPARING IMAGES
Comparing shots/home/320x1500_chrome_live.png and shots/home/320x1500_chrome_local.png
Saved diff
GENERATING THUMBNAILS
GENERATING GALLERY
Gallery generated

View the gallery in your browser:
	 file:///WWW/dederdelong.be.d8/data/wraith/shots/gallery.html
  • [yes] I have pasted the contents of my config file below:
browser:
  phantomjs: "chrome"
domains:
  local: "http://www.dederdelong.loc"
  live: "https://www.dederdelong.be"
paths:
  home:  /
screen_widths:
  - 320x1500
directory: 'shots'
fuzz: '20%'
threshold: 5
gallery:
  template: 'slideshow_template' # Examples: 'basic_template' (default), 'slideshow_template'
  thumb_width:  200
  thumb_height: 1500
mode: diffs_first
threads: 1
verbose: true