I have some tests that require a shake gesture, and tend to favor physical device execution when I can.
I have code in place to leverage the accessibility shortcut functionality that allows me to triple tap the side/power button to turn on/off the assistive touch at will.
However, I can’t find anyway to actually locate the assistive touch button on screen. Doesn’t show up in page source. As a workaround, I moved the button to the bottom right corner on all test devices. Annoying, but technically works.
I’d love to find a more reliable solution other than assuming its in the corner and just tapping blindly. It must have some accessibility info as turning on VoiceOver allows the user to “find” the assistive touch button.
Edit: Using Xcode’s accessibility inspector it can also find the button and it seems to have plenty of info, including an identifier of ‘AssistiveTouchNubbit’ but for some reason Appium can’t see it
Thanks.