Skip to main content

Automate chrome browser render diffs for website testing

Project description

Featuring Puppeteer, headless Chrome and Python image diffing

Installation

pip install visualdiff

Usage

Create your tests calling visualdiff.compare(url), this will drive a headless Chrome session rendering the desired URL and comparing the resulting image with an expected one.

The expectation are stored by default in a visualdiff subfolder of the current calling test script.

There are several additional options you can use, we’ll see them in the examples

Examples

import visualdiff as vd

assert not vd.difference('https://example.com')

Credits:

History

0.2.0 (2018-04-06)

  • Beta version, things should work

0.1.0 (2018-02-18)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

visualdiff-0.2.1.tar.gz (15.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page