Locale: Virtual Devices

Locale is not GeoLocation. Locale is usually the operating region of the device, aka what the user would select when booting the phone. This may be hard locked into the device but depends on the model and OS. Defer to the Appropriate system settings + developer info.

Third party code may be critical in managing internationalization testing. Locale & Region impact things like currency characters, temperature values, calendar format, what the first day of the week is (sunday or monday), and other culturally significant values.

Be aware your app may disregard the region setting in the device (Android/iOS) and defer to the cellular region, GPS Location, and/or the IP address. You may have to check with your development team to determine how location and locale is determined by the app.

Android UIAutomator 2 Driver Notes

UIAutomator2 Driver README

Locale Developer docs for Android

iOS XCUI Driver Notes

XCUI Driver Overview

XCUI Driver Capabilities or WDA (Web Driver Agent).

Locale, official Apple docs for iOS

XCUI Driver Execute Methods