Skip to main content

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.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.

Release files for visualdiff 0.3.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for visualdiff 0.3.4
File Size Uploaded
visualdiff-0.3.4.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for visualdiff 0.3.4
File Interpreter ABI Platform
visualdiff-0.3.4-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 16.0 kB

Release files / visualdiff-0.3.4.tar.gz

Download URL visualdiff-0.3.4.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3b8d4dd74bdfc9187a1b817c967adf46b376b042ee71c8a69e204b4b09669d83
BLAKE2b-256 checksum
How to use checksums
e2766020c8255357848f2887c673c68b7ebf462f46d984a52e04323738bcc7ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / visualdiff-0.3.4-py2.py3-none-any.whl

Download URL visualdiff-0.3.4-py2.py3-none-any.whl
Size 5.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
ab78d8672c0650d6c67c514c72ef2a40beab73a7358e9dbec5d85493132e562f
BLAKE2b-256 checksum
How to use checksums
3d807018f6d0df8c8f865cf049fb2162bff6c3a6970954a62a1a854d60c977c8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.4 This release

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.2.4

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page