Select device
You can run your Appium tests on a wide range of real iOS and Android devices on BrowserStack. These are not simulators or emulators but physical devices hosted in our data centers.
To select a device to test on, use the device
capability in your Appium test scripts. You can also select a particular OS version for the specified device by setting an os_version
capability, and specify a set of devices for parallel testing.
To view the list of supported Android and iOS devices and OS versions, refer to the list of supported devices.
If you are using BrowserStack SDK, you can set the following capabilities in the browserstack.yml
file:
Capability | Description | Values |
---|---|---|
deviceName |
Specify the device to test on. This is a required capability. | Use the OS / Device selector |
platformName |
Specify the OS. | ios, android |
platformVersion |
Specify the OS version of the device. | Use the OS / Device selector |
Example:
BrowserStack SDK is a plug-n-play solution that takes care of all the integration steps for you. Using the BrowserStack SDK is the recommended integration method for your project. To know more, visit the SDK core concepts page.
Capability | Description | Values |
---|---|---|
device |
Specify the device to test on. This is a required capability. | Use the OS / Device selector below |
os |
Specify the OS. | ios, android |
os_version |
Specify the OS version of the device. | Use the OS / Device selector below |
Example:
desiredCapabilities.setCapability("device", "Google Pixel 3");
desiredCapabilities.setCapability("os_version", "10.0");
var capabilities = {
'device' : 'Google Pixel 3',
'os_version' : '10.0'
}
capability.SetCapability("device", "Google Pixel 3");
capability.SetCapability("os_version", "10.0");
$capabilities->setCapability("device") => "Google Pixel 3",
$capabilities->setCapability("os_version") => "10.0"
desired_cap = {
'device': 'Google Pixel 3',
'os_version': '10.0'
}
desired_caps = {
'device' = 'Google Pixel 3',
'os_version' = '10.0'
}
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!