Search code examples
webdriverautomated-testsbrowserstack

Required capabilities when running BrowserStack Automate with a mobile device


Description
The BrowserStack documentation lists all capabilities you can set for their Automate product but does not describe which ones MUST be present in order to test on, for example a 'Google Nexus 5'.

Their code generator suggests this:

{
   "browserName" : "android",
   "platform" : "ANDROID",
   "device" : "Google Nexus 5"
} 

But I know from experience that this set of capabilities also works:

{"os":"android", "device": "Google Nexus 5"}

Because of this I'm asking myself:

Question
Does {"device": "Google Nexus 5"} also work?
And if not, what is the minimum and correct set of capabilities when using BrowserStack Automate with a specific mobile device?


Solution

  • Yes, when you request a webdriver session with only the capability 'device' set, BrowserStack will successfully create a session on that device with the default browser of the device.

    Source: E-Mail conversation with a kind BrowserStack technical Support employee.