Puppeteer Screenshot Diff Engine

Visual regression testing using Puppeteer page.screenshot() with pixelmatch comparison. Leverages CDP sessions via page.createCDPSession() for precise viewport emulation and network throttling.

agentskillexchange Updated 28 repo stars

File contents

Puppeteer Screenshot Diff Engine

Visual regression testing using Puppeteer page.screenshot() with pixelmatch comparison. Leverages CDP sessions via page.createCDPSession() for precise viewport emulation and network throttling.

Installation

Use the upstream install or setup path that matches your environment:

  • npm i puppeteer # Downloads compatible Chrome during installation.
  • npm i puppeteer-core # Alternatively, install as a library, without downloading Chrome.

Basic usage or getting-started notes:

Documentation

Source

agentskillexchange/skills/tree/main/skills/puppeteer-screenshot-diff-engine commit d11b2832af

Frequently asked questions

npx skillmds@latest add agentskillexchange/puppeteer-screenshot-diff-engine