Skip to main content

Automate chrome browser render diffs for website testing

Project description

Featuring Puppeteer, headless Chrome and Python image diffing


pip install visualdiff


Create your tests calling, 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


import visualdiff as vd

assert not vd.difference('')



0.3.0 (2018-05-12)

  • Disable CSS animation, allow screenshot delay
  • If save_differences==True the diff file will contain an highlighted diff-rect

0.2.3 (2018-04-11)

  • First version in Continuous Integration

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.

Files for visualdiff, version 0.3.4
Filename, size File type Python version Upload date Hashes
Filename, size visualdiff-0.3.4-py2.py3-none-any.whl (5.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size visualdiff-0.3.4.tar.gz (10.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page