Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

browserstack

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserstack

A client for working with the BrowserStack APIs.

  • 1.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
797K
decreased by-9.43%
Maintainers
3
Weekly downloads
 
Created

What is browserstack?

The browserstack npm package allows developers to interact with the BrowserStack API, enabling automated testing of web applications across various browsers and devices. It provides functionalities for managing browser sessions, running tests, and retrieving test results.

What are browserstack's main functionalities?

Start a Browser Session

This feature allows you to start a new browser session on BrowserStack. You can specify the operating system, browser, and URL to be tested. The code sample demonstrates how to create a new worker (browser session) using the BrowserStack API.

const browserstack = require('browserstack');
const client = browserstack.createClient({
  username: 'your-username',
  password: 'your-access-key'
});

client.createWorker({
  os: 'Windows',
  os_version: '10',
  browser: 'chrome',
  browser_version: 'latest',
  url: 'http://www.example.com',
  timeout: 300
}, function(error, worker) {
  console.log(worker);
});

Stop a Browser Session

This feature allows you to stop an existing browser session. The code sample shows how to terminate a worker (browser session) using its ID.

client.terminateWorker(worker.id, function(error, data) {
  console.log(data);
});

Retrieve Test Results

This feature allows you to retrieve the details and results of a specific browser session. The code sample demonstrates how to get the status and details of a worker using its ID.

client.getWorker(worker.id, function(error, worker) {
  console.log(worker);
});

Other packages similar to browserstack

Keywords

FAQs

Package last updated on 12 Dec 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc