[ Web Proxy ]
URL:
Viewing: https://www.browserstack.com/javascript-testing-api [Back]  [Original]

API for Automated JavaScript Testing | BrowserStack Docs
Skip to main content
Experience faster, smarter testing with BrowserStack AI Agents. See what your workflows been missing. Explore now!
Table of Contents
Search by title
No Result Found
close burger menu [close burger menu]
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our Discord [Join our Discord]Join our Discord
On this page

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:

HTTPS API

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

Next Steps

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

Submit

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?
Submit

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

Submit Skip

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?
Submit Skip

Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle

Welcome to App Automate

back [back] dismiss framework selector modal [dismiss framework selector modal]

New to App Automate?

See documentation for mobile app testing on App Automate with the widely used Appium [Appium] Appium framework
View Documentation

Select your framework and language to proceed

Welcome to Automate

back [back] dismiss framework selector modal [dismiss framework selector modal]

New to Automate?

See documentation for cross-browser testing on Automate with the widely used Selenium [Selenium] Selenium framework
View Documentation

Select your framework and language to proceed


Web Proxy Viewer  |  New URL  |  Original Page