I have a view with the following structure:
GrandView
-Parent View1
-Parent View2
--Child View1
--Child View2
The child views take up almost all of the bounds of Parent View2
, but there is still some space around the edges. I can select Parent View2
in the simulator with the accessibility inspector if I click on the edges. I can also tap Parent View2
in UIAutomation if I use:
tapWithOptions({tapOffset:{x:0.15, y:0.95}});
However, my calls to isVisible()
always return 0
. I expect that if I can tap the element, or select it with the accessibility inspector, it should return 1
.
How does UIAutomation determine whether a UIAElement
is visible?