How UIAutomation determines if UIAElement.isVisible () is

I have a view with the following structure:

GrandView
-Parent View1
-Parent View2
--Child View1
--Child View2

Recursive representations occupy almost all borders Parent View2, but there is still some space around the edges. I can select Parent View2in the simulator using the availability inspector if I click on the edges. I can also click Parent View2in UIAutomation if I use:

tapWithOptions({tapOffset:{x:0.15, y:0.95}});

However, my calls isVisible()always return 0. I expect that if I can click an item or select it with the accessibility inspector, it should return 1.

How does UIAutomation determine if it is visible UIAElement?

+5
source share
2 answers

UIView, hidden. , , accessibilityElementsHidden.

, UIAutomation. , , () - , , . , , , , - . Sine UIAutomation - DOM, UIAccessibility, , , - . script , , ! waitForInvalid .

Alex Vollmer tuneup.js UIAutomation . https://github.com/alexvollmer/tuneup_js

0

, , -. Apple, : setTimeout, :

- . , , , , .

setTimeout ( push pop). , , - , (- 5 ).
WWDC 2010" " , ADC WWDC 2010 . tap() . - UIAutomation 5 , .
-:

var oldTimeout = target.timeout(); target.pushTimeout(10);

target.popTimeout(oldTimeout);

.

0

All Articles