zhiva: (Default)
[personal profile] zhivaWednesday, November 16th, 2011 10:25 am
Apple's documentation:

scrollToVisible
Scrolls until the specified element is visible in a container view.


You'd think this method would be enough to make it possible to interact with UI element in Automation (it cannot interact with off-screen elements).

Nope.

If it's the last element, barely half of it is visible. tap()'ing or setValue()'ing this element hits the tab bar. So I have to check if it's the last element, and if so, scroll the view down.

December 2025

S M T W T F S
 123456
78910111213
14151617 181920
21222324252627
28293031   
Page generated Thursday, March 19th, 2026 03:14 pm
Powered by Dreamwidth Studios