I am trying UI Automation on iPhone for connecting to any given Wi-Fi network. I want to automate Settings app. It should automatically:
- open Settings app;
- turn on Wi-Fi;
- connect to given network by providing SSID and WPA.
My questions are:
- Is it possible to automate any inbuilt app using UI Automation? Does the Apple/iOS security model preclude any such access to inbuilt apps?
- If it is possible, how to achieve this?
I know I'm late to the party, but I'd like to provide a more complete answer and elaborate on my solution.
I run my uiautomation from shell scripts, here's my solution..
(You'll have to remove spaces etc)
settingsapp.sh
settingapp.js
So you could have several shell scripts, firstly one to set the language, then another to do screen shots, then run another switch to another language etc..
:)
Yes, it is possible and easy to do. Select the "Preferences.app" (Settings) as your target and write a script for the rest. The "Preferences.app" is located inside your Xcode app
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs//Applications/Preferences.app