1.9.3 • Published 3 years ago

@uktrade/wdio-image-diff-js v1.9.3

Weekly downloads
1,019
License
MIT
Repository
github
Last release
3 years ago

wdio-image-diff

This wrapper was created to make visual regression as simple as possible, by exposing basic functions that allow you to view the difference between images. The wrapper uses pixelmatch which is simple and powerful and relies on a browser object of webdriverIO to take screenshots.

NPM Downloads

Build Status

Table of contents

Capabilities

  • Compares 2 images
  • Saves baseline if no baseline is present
  • Creates a diff image in case of failure
  • Works with any device/browser supported by wdio and your third party i.e saucelabs
  • Force browser window size so it's not reliant on third party (size can be modified via options)
  • Take screenshot of the whole page or for a given element
  • Hide elements which get updated dynamically to make the test more reliable

Dependencies

In order to use takeElement(elementCssPath) function you will need to install imagemagick as we crop the full page screenshot in order to have an image of a given element.

On Ubuntu

$ apt-get install imagemagick

On Mac OS X

$ brew install imagemagick

On CentOS

$ yum install imagemagick

1.9.3

3 years ago

1.9.2

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.0

4 years ago

1.7.0

4 years ago

1.6.0

4 years ago

1.5.0

4 years ago

1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.180

4 years ago

1.0.173

4 years ago

1.0.169

4 years ago

1.0.165

4 years ago

1.0.158

4 years ago

1.0.154

4 years ago

1.0.150

4 years ago

1.0.143

5 years ago

1.0.139

5 years ago

1.0.132

5 years ago

1.0.128

5 years ago

1.0.124

5 years ago

1.0.117

5 years ago

1.0.113

5 years ago

1.0.97

5 years ago

1.0.93

5 years ago

1.0.89

5 years ago

1.0.85

5 years ago

1.0.81

5 years ago

1.0.74

5 years ago

1.0.70

5 years ago

1.0.57

5 years ago

1.0.53

5 years ago

1.0.49

5 years ago

1.0.45

5 years ago

1.0.41

5 years ago

1.0.37

5 years ago

1.0.33

5 years ago

1.0.29

5 years ago

1.0.25

5 years ago

1.0.0

5 years ago