Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
protractor-image-comparison
Advanced tools
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.
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
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,033 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.
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.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.