Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you run chrome headless? #623

Open
weseze opened this issue May 12, 2020 · 0 comments
Open

Can you run chrome headless? #623

weseze opened this issue May 12, 2020 · 0 comments

Comments

@weseze
Copy link

weseze commented May 12, 2020

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
@weseze weseze changed the title Can you run chrome "in the background"? Can you run chrome headless? May 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant