Search code examples
iphoneiosipadui-automationios-ui-automation

Change international settings during iOS automation


I'd like to have my iOS automation be able to set the devices language before running a specific test. Has anyone solved this problem?

I really wish the iOS automation framework allowed me to hit the home button, click settings, etc., but that's not currently supported... I already use a fiddler service I built to fake dropped connections, etc.


Solution

  • I do this by changing the preference files for the Simulator in my Screen Shooter utility.

    https://github.com/jonathanpenn/ui-screen-shooter

    That sample project uses UI Automation and shell scripts to take screen shots in different languages. Check out the bin/choose_sim_language script for more details.