I’m automating a test on a real device and need to turn off wi-fi. Ressearching other questions, I saw the most recommended method was swiping up from the bottom of the screen to reveal the control center, and then turning off the wi-fi from there. However, I’ve been unable to do this with TouchActions. I’ve been trying variations of this:
touchAction.press(width/2, height).waitAction(Duration.ofMillis(90)).moveTo(0, height).release().perform();
But instead of revealing the control center, this seems only to be accidentally clicking on elements in my screen.
Another suggestion I’ve been given was to use the virtual home button to access the control center, however, tapping on the screen coordinates of the button doesn’t seem to do anything either.
Any suggestions?
I’m using java client 5.0.0-BETA9 and Appium 1.7.2.
created
May '18
last reply
May '18
- 10
replies
- 767
views
- 2
users
- 2
links