happo icon indicating copy to clipboard operation
happo copied to clipboard

Add headless Chrome target

Open lencioni opened this issue 8 years ago • 2 comments

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

lencioni avatar May 02 '17 16:05 lencioni

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: https://github.com/Galooshi/happo/blob/c291f5fa9e729e49c8b1d2246a288da18ed51052/packages/happo-target-firefox/src/runVisualDiffs.js#L76

trotzig avatar May 02 '17 17:05 trotzig

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

An example of screenshot in their test code.

beeing avatar Jan 15 '18 08:01 beeing