
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
saucelabs-connector
Advanced tools
Helps connect the local machine to SauceLabs and start a remote browser.
Helps connect the local machine to SauceLabs and start a remote browser.
$ npm install saucelabs-connector
var SauceLabsConnector = require('saucelabs-connector').default;
// Use this online tool to generate a valid platform configuration:
// https://wiki.saucelabs.com/display/DOCS/Platform+Configurator#/
var browserInfo = {
platform: 'Windows 10',
browserName: 'chrome',
version: '45.0'
};
var pageUrl = 'www.example.com';
var jobTimeout = 60; // in seconds
var jobOptions = {
jobName: 'Sample tests',
build: 'build-1234',
tags: ['tag1', 'tag2', 'tag3']
};
// See more information about options: https://github.com/bermi/sauce-connect-launcher/blob/master/README.md
var sauceConnectOptions = {
verbose: false,
vv: false
};
var saucelabsConnector = new SauceLabsConnector('SAUCELABS_USERNAME', 'SAUCELABS_ACCESS_KEY', sauceConnectOptions);
var saucelabsBrowser = null;
// Connects the local machine to SauceLabs
saucelabsConnector
.connect()
.then(function () {
// Use the waitForFreeMachines method to ensure that the required number of machines is available.
var machineCount = 3; // the required number of machines.
var requestInterval = 30000; // the request delay in milliseconds.
var maxAttemptCount = 5; // the maximum number of attempts.
return saucelabsConnector.waitForFreeMachines(machineCount, requestInterval, maxAttemptCount);
})
.then(function () {
// Starts a remote browser on SauceLabs with the specified url.
// jobOptions and jobTimeout are optional arguments.
return saucelabsConnector.startBrowser(browserInfo, pageUrl, jobOptions, jobTimeout);
})
.then(function (browser) {
saucelabsBrowser = browser;
// Do some work with the browser
})
.then(function () {
// Closes the browser
return saucelabsConnector.stopBrowser(saucelabsBrowser);
})
.then(function () {
return saucelabsConnector.disconnect();
});
You can select the data center you want to connect to, by setting the environment variable SAUCE_API_HOST
to the respective data center's host:
export SAUCE_API_HOST=saucelabs.com # for us-west-1, default
export SAUCE_API_HOST=eu-central-1.saucelabs.com # for eu-central-1
FAQs
Helps connect the local machine to SauceLabs and start a remote browser.
The npm package saucelabs-connector receives a total of 5,307 weekly downloads. As such, saucelabs-connector popularity was classified as popular.
We found that saucelabs-connector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 9 open source maintainers 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 researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.