I already read once or twice that turning Wi-Fi on / off on a real iOS device (iPad in my case) using the UI Automation script seems impossible.
I also read that you can create a script with target βsettingsβ, but it seems that this is only for simulators, am I right?
Do you have ideas or solutions for me?
Yours faithfully,
I was able to do this (just make sure that you are aiming the application at the first state while doing this):
var target = UIATarget.localTarget(); target.dragFromToForDuration({x:0.1, y:557.00}, {x:211.00, y:206.00}, 0.5); //to expose the actions panel on iOS target.frontMostApp().mainWindow().elements()["Wifi"].tapWithOptions({tapOffset:{x:0.44, y:0.47}});
For this, for example, @Larme, the iOS user device must be hacked due to the blocked nature of iOS.