Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Add headless Chrome target #201

Open
lencioni opened this issue May 2, 2017 · 2 comments
Open

Add headless Chrome target #201

lencioni opened this issue May 2, 2017 · 2 comments

Comments

@lencioni
Copy link
Contributor

lencioni commented May 2, 2017

Now that headless Chrome is a thing, it probably shouldn't be too difficult to add Chrome as a rendering target for Happo.

@trotzig
Copy link
Contributor

trotzig commented May 2, 2017

Yep, the only thing different from the firefox target is that the chrome webdriver doesn't support taking a screenshot of a single element (at least not last time I checked). This is the relevant code for the happo-target-firefox package:

overlay.takeScreenshot().then((screenshot) => {

@beeing
Copy link

beeing commented Jan 15, 2018

In case if you missed this, puppeteer will be a better option.

An example of screenshot in their test code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants