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
|
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 and Sequoia
|
deviceName |
Mobile or tablet to test on | The device you want to test on. View the list of devices we support. |
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.
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
Copy
userName: YOUR_USERNAME
accessKey: YOUR_ACCESS_KEY
platforms:
- os: Windows
osVersion: 10
browserName: Chrome
browserVersion: 120.0
- os: OS X
osVersion: Monterey
browserName: Safari
browserVersion: 15.6
- deviceName: iPhone 13
osVersion: 15
browserName: Chromium
deviceOrientation: portrait
browserstackLocal: true
buildName: bstack-demo
buildIdentifier: ${BUILD_NUMBER}
projectName: BrowserStack Sample
debug: true
networkLogs: true
consoleLogs: info
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
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!