KIF Tapping Disabled Button

| | August 5, 2015

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?

One Response to “KIF Tapping Disabled Button”

  1. You can try this:

    if([tester waitForViewWithAccessibilityLabel:@"loginButton"].isProbablyTappable){
    
            // button tappable
        }
    

Leave a Reply