Trying to run a KIF test. I want to tap the button with accessibility label "LOG IN" but it times out with the message "view is not enabled for interaction".
[tester tapViewWithAccessibilityLabel:@"SIGN IN"];
The button is there, and it has this text in its label. How do I "enable" this UI element?
You get this error message if
isUserInteractionActuallyEnabled
of a view yieldsNO
. For example have a look at the definition oftapAccessibilityElement:inView:
inKIFUITestActor.m
. The methodisUserInteractionActuallyEnabled
is implemented inUIView-KIFAdditions.m
and basically checks the propertyisUserInteractionEnabled
of a view and does some more elaborate checks if you tap a button in a navigation bar or an action sheet.