Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
protractor-tools
Advanced tools
A typescript rewrite of sg-protractor-tools utility library
This library provides a reusable and generic set of helper functions for the Protractor test framework. It includes functions that simplify things like browser resizing, scrolling and memory usage tracking as part of a test suite. The project bundles an example application that showcases the functionality.
While using Protractor for testing our Angular-based applications, we have found that we can simplify many of the common tasks done as part of part of our test suite. The Protractor API is fairly low-level in some cases, and we have seen that we can cut down the amount of code for some common tasks by externalizing functionality into a reusable library.
npm install -D protractor-tools
Install the library as a development dependency using the node package manager of your choice.
Import the required util classes in your *.e2e-spec.ts
files.
import { ResizeUtil } from 'protractor-tools';
describe('Resizing demo App', () => {
it('should resize the browser window a little', () => {
// ...
resizeUtil.setWindowSize(1303, 876);
// ...
});
});
The following utility classes are currently available
You may refer to the source code of the util classes for usage details or the forked library documentation for more information about the reason for the utility classes.
The code in this project is licensed under MIT license.
FAQs
Collection of helper functions for protractor e2e test
The npm package protractor-tools receives a total of 1 weekly downloads. As such, protractor-tools popularity was classified as not popular.
We found that protractor-tools 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.