

If you want the module to auto save a non existing image to the baseline youĬan provide 'autoSaveBaseline: true' to the options. Users/wswebcreation/Git/protractor-image-comparison/.tmp/actual/desktop_chrome/examplePage-chrome-latest-1366x768.png If you run for the first time without having a baseline the check-methods will reject the promise with the following warning: #īaseline image not found, save the actual image manually to the baseline. In comparison to versions < 3 protractor-image-comparison can now be used as a plugin with the following code: // const )).toEqual( 0) > protractor-image-comparison supports NodeJS 8 or higher Configuration
#Picture of a protractor install
Npm install -save-dev protractor-image-comparison Install this module locally with the following command to be used as a (dev-)dependency: npm install -save protractor-image-comparison > NOTE: See the browser-matrix at the top of this readme to see all the supported browser/OS-versions. mobile / tablet browsers (Chrome / Safari on emulators / real devices) via Appium.desktop browsers (Chrome / Firefox / Safari / Internet Explorer 11 / Microsoft Edge).If you want to compare images online you can check the online tool The comparison power comes from ResembleJS. This is a lightweight module to retrieve the needed data and screenshots for all browsers / devices.

The module is now based on the power of the new webdriver-image-comparison module. increase the element dimensions screenshots.hide / remove elements during comparison like for example stickyheaders ( NEW).blockout custom regions and even automatically exclude a status and or tool bars (mobile only) during a comparison.automatically create a baseline when no baseline is there.save or compare screens / elements / full page screens against a baseline.Protractor-image-comparison is a lightweight protractor plugin for browsers / mobile browsers / hybrid apps to do image comparison on screens, elements or full page screens. NOTE: V3 is out, please read the releases for all the (breaking)changes What can it do?
