I have already read once or twice that turn on/off wifi on a real iOS device (iPad in my case) with a UI Automation script seems not possible.
I've also read that you can create a script with the target "Settings" but it seems that it's only for simulators, am I right ?
Do you have any ideas or solutions for me ?
Regards,
i was able to do so (just make sure you target application is on foremost state when doing so):
To do this, like @Larme states, the user's iOS device must be jailbroken due to the locked-down nature of iOS.