Search This Blog

Thursday, August 20, 2015

Tell some of the KIF methods to test

waitForTappableViewWithAccessibilityLabel
waitForViewWithAccessibilityLabel

tapViewWithAccessibilityLabel

enterText:  intoViewWithAccessibilityLabel:

Examples:

    [tester waitForTappableViewWithAccessibilityLabel:@"Login Button"];
    [tester tapViewWithAccessibilityLabel:@"Login Button"];
    [tester waitForViewWithAccessibilityLabel:@"UserName Field"];
    [tester enterText:@"myUserName" intoViewWithAccessibilityLabel:@"UserName Field"];
    [tester enterText:@"myPassword" intoViewWithAccessibilityLabel:@"Password Field"];
    [tester tapViewWithAccessibilityLabel:@"Submit Button"];
   
    // Back to main view
    [tester waitForViewWithAccessibilityLabel:@"Login Button"];


No comments:

Post a Comment