Program Wi-Fi on / off on a real iOS device using user interface automation

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,

+6
source share
2 answers

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}}); 
+4
source

For this, for example, @Larme, the iOS user device must be hacked due to the blocked nature of iOS.

+1
source

All Articles