Automates comparing web pages to see if the version changed. Can be useful for visual testing automation.
Run locally: yarn && yarn dev
Calling this endpoint will create a snapshot of the specified url in one of the possible directories: downloads/original/
or downloads/new/
(if retake
).
Query param | Required | Type | Description | Example |
---|---|---|---|---|
url | Yes | string | Valid url to take a screenshot and eventually to compare | https://github.com/mjrdnk/crossbrowser-image-testing |
retake | No | boolean | Will retake the image (puts it in new/ directory) | 1 |
Prerequisites: new and original images are screenshot and sitting in original/
and new/
directories in the project root under downloads/
.
Calling this endpoint will create a diff between new/
and original/
image of each browser type, and will place the diffs in diff/
directory.