KIF Tapping Disabled Button

500 views Asked by At

I am using KIF to test my UI. I have a (very basic) login screen and the button on the screen only becomes enabled after text has been entered into both the email and password field. I want to write a KIF test using [tester] to test whether or not that button can be tapped. Is that possible?

1

There are 1 answers

0
Susmitha On

You can try this:

if([tester waitForViewWithAccessibilityLabel:@"loginButton"].isProbablyTappable){

        // button tappable
    }