Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
protractor-image-comparison
Advanced tools
##What can it do? protractor-image-comparison is a lightweight protractor plugin for browsers / mobile browsers / hybrid apps to do image comparison on screens or elements.
You can:
Comparison is based on ResembleJS.
##Installation Install this module locally with the following command:
npm install protractor-image-comparison
Save to dependencies or dev-dependencies:
npm install --save protractor-image-comparison
npm install --save-dev protractor-image-comparison
##Usage protractor-image-comparison can be used for:
For more information about mobile testing see the Appium documentation.
If you run for the first time without having a baseline the check
-methods will reject the promise with the following warning:
`Image not found, saving current image as new baseline.`
This means that the current screenshot is saved and you manually need to copy it to your baseline.
If you instantiate protractor-image-comparsion
with autoSaveBaseline: true
, see docs, the image will automatically be saved into the baselinefolder.
protractor-image-comparison provides:
checkScreen
and checkElement
.saveElement
and saveElement
for saving images.saveFullPageScreens
and a comparison method checkFullPageScreen
for saving and comparing a fullpage screenshot.The comparison methods return a result in percentages like 0
or 3.94
.
protractor-image-comparison can work with Jasmine and Cucumber.js. See Examples for or a protractor-config setup, or a Jasmine or a CucumberJS implementation.
More information about the methods can be found here.
See conventions.md.
See CONTRIBUTING.md.
index.js
based on PixDiff./lib/resemble.js
node-resemble + ResembleJSFAQs
npm-module to compare images with protractor
The npm package protractor-image-comparison receives a total of 4,491 weekly downloads. As such, protractor-image-comparison popularity was classified as popular.
We found that protractor-image-comparison demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.