GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Explore now
  • Live Manual cross-browser testing
  • Automate Browser automation cloud
  • Accessibility Testing Automate web compliance
  • Test Companion Agentic testing in IDE
  • Low Code Automation Automation without coding
  • App Live Real device testing
  • App Automate Mobile app automation cloud
  • Test Management Plan, track, and manage tests
  • Testing Toolkit Essential manual testing tools
  • Requestly Privacy-first API client
  • Percy Visual testing & review
  • Custom Device Lab Tailored test environments
  • Load Testing Test browser & API load

This view

  • Original page
  • New address

GeezerVison is showing www.browserstack.com — API for Automated JavaScript Testing | BrowserStack Docs

Table of Contents
Search by title
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

JavaScript Testing API

Learn about the JS Testing API, and the language bindings available.

API overview

BrowserStack HTTPS-based API provides browser-as-a-service. The API that can be used to open any URL, in any combination of browser and OS currently available on BrowserStack.

A common use case of the BrowserStack API is with tools such as Jasmine, QUnit, Mocha, Jest, Yeti, TestSwarm, and more, to automate running your JavaScript tests on the BrowserStack cloud.

You can view the entire list of supported browsers and OSes for JavaScript Testing.

API versions

API version Status Changelog
5.0 Active Added session IDs and dashboard URLs to responses.
4.0 Active Moved all API endpoints to HTTPS.
3.0 Retired Added support for specifying OS versions.
2.0 Retired Added support for Mac OS and mobile devices.
1.0 Retired Automated JS testing for browsers running on Windows.

Using the API

You can use the JS testing API in one of the following ways:

  1. Use one of the supported test runners
  2. Use one of the language bindings for the API
  3. Use the API directly

Language Bindings

Language bindings are a wrapper over the HTTPS API. The language bindings are currently available in:

  • NodeJS
  • Ruby
  • .NET

HTTPS API

You can alternatively use the HTTPS API directly. Refer to the documentation on the API’s Github repo for details.

Next Steps

  • Integrate your JS unit test framework
  • Learn how to run your tests from a CI
  • Run your tests in parallel to get faster feedback
  • Explore the browsers and devices you can test on to gain confidence in your code
  • Run your first JS unit test on BrowserStack
Did this page help you?

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked

  • This page has exactly what I am looking for
  • This content & code samples are accurate and up-to-date
  • The content on this page is easy to understand
  • Other (please tell us more below)
Any additional feedback?

Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked

  • This page has exactly what I am looking for
  • This content & code samples are accurate and up-to-date
  • The content on this page is easy to understand
  • Other (please tell us more below)
Any additional feedback?

Thank you for your valuable feedback!

Talk to an Expert
Talk to an Expert
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.