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
isUserInteractionActuallyEnabledof a view yieldsNO. For example have a look at the definition oftapAccessibilityElement:inView:inKIFUITestActor.m. The methodisUserInteractionActuallyEnabledis implemented inUIView-KIFAdditions.mand basically checks the propertyisUserInteractionEnabledof a view and does some more elaborate checks if you tap a button in a navigation bar or an action sheet.