Skip to main content
Experience faster, smarter testing with BrowserStack AI Agents. See what your workflow’s been missing. Explore now!
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Select browsers and devices

Learn about the capabilities that you can use to run tests on a particular browser / OS.

Following are a list of capabilities which can you can use to specify which browser / OS / device combination you want to run your test on:

Capability Description Expected values
browserName Browser you want to test on Chrome, Firefox, IE, Safari, Edge, Opera, chromefortesting. chromefortesting is case-insensitive and works on desktop only. See the note below for supported versions and platforms.
browserVersion Browser version you want to test By default, we run tests on latest stable version of specified browser. View the list of supported browser versions.

You can also use latest-beta, latest, latest - 1, latest - 2, etc., to test on the current beta release or latest n versions of the specified browser as you specify.
os OS you want to test on Windows, OS X
osVersion Version of the OS to test on Windows: XP, 7, 8, 8.1, 10 and 11

OS X: Snow Leopard, Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojave, Catalina, Big Sur, Monterey, Ventura, Sonoma, Sequoia, Tahoe and Golden Gate
deviceName Mobile or tablet to test on The device you want to test on. View the list of devices we support.

Chrome for Testing is a Chrome distribution built for automated testing. Set browserName to chromefortesting to use it. The BrowserStack dashboard and REST API refer to the same browser as chromeForTesting.

Set browserVersion the same way you would for Chrome, for example latest or a specific version number. Check the BrowserStack dashboard or REST API for the list of currently supported Chrome for Testing versions.

Chrome for Testing runs on desktop only, on Windows 10 and later, and macOS Monterey and later. It isn’t available on Cypress or Puppeteer. A request for Chrome for Testing on a real mobile device doesn’t return an error. It silently falls back to regular mobile Chrome, so verify your platform before relying on it.

Example: Chrome for Testing capability (browserstack.yml)

platforms:
  - os: Windows
    osVersion: "10"
    browserName: chromefortesting
    browserVersion: "149.0"

You can use these capabilities as shown in the following example:

Set platforms to test on

Select the browsers / devices you want to test under the platforms object.

Parallel thread #1
Parallel thread #2
Parallel thread #3

For testing on the Chromium browser on an iOS device running iOS 14 or higher, please refer this page.

Sample script showing capability declarations for browser-OS combinations

browserstack.yml
Copy icon Copy
By the way, did you know?

You can optimize your web apps for your mobile users by testing them on mobile devices. Run automated mobile browser tests using BrowserStack Automate.

Why test on mobile browsers?

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





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





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle