KIF Tapping Disabled Button

520 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 best solutions below

0
On

You can try this:

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

        // button tappable
    }