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

SIM enabled devices

  • This feature is available only under Desktop and Mobile Pro, and Enterprise Pro plans. For more details, check out our pricing page.
  • Currently, eSIMs are supported on iPhone 13 and iPhone 14 devices only.

To use this feature on dedicated devices, refer to the Custom Device Lab documentation.

BrowserStack Automate provides access to SIM-equipped devices and enables you to test SIM-related use cases such as:

  • Receiving SMS on the allocated device during your test session.
  • Composing and sending SMS from the allocated device during your test session.

In this guide, you will learn about:

Supported OS and devices

OS Version Supported Devices
Android 16 Samsung Galaxy S26
Google Pixel 9
Android 15 Samsung Galaxy S25
Google Pixel 9 Pro
Google Pixel 9
Android 14 Samsung Galaxy S24 Ultra
Samsung Galaxy S24
Google Pixel 8 Pro
Google Pixel 8
Android 13 Samsung Galaxy S23 Ultra
Samsung Galaxy S23
Google Pixel 7
Android 12 Samsung Galaxy S22 Ultra
Samsung Galaxy S22+
Samsung Galaxy S22
Samsung Galaxy S21
Google Pixel 6

Obtain a SIM enabled device

Use the following capability in your test scripts to obtain a device with SIM.

To enable sim options for Android devices use the following code examples:

If you are using BrowserStack SDK, you can set the following capability within the browserstack.yml file:

Capability Description
enableSim Set this capability to "true" to obtain a device with SIM.
simOptions Set the configuration β€œregion” to the below mentioned country name to obtain a SIM device for that country.
Android: Australia, India, USA
iOS: Australia, India, Ireland, USA.

The esim capability is not supported for Android devices.

Example:

browserstack.yml
Copy icon Copy

Retrieve SIM properties of the allocated device

Use the following executor command in your test scripts to retrieve SIM properties of the allocated device such as the phone number and region during session run time:

driver.execute_script("browserstack_executor:{\"action\": \"deviceInfo\", \"arguments\" : \"deviceProperties\" : ["simOptions"]})

Sample response:

{
    β€œsimOptionsβ€œ : { β€œPhone Numberβ€œ:β€œXXXXX”, β€œRegionβ€œ:”USA”, "esim":true }
}

Check our list of various JavaScript Executors that BrowserStack offers.

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