Skip to content

Instantly share code, notes, and snippets.

@goofmint
Created January 11, 2012 06:18
Show Gist options
  • Select an option

  • Save goofmint/1593338 to your computer and use it in GitHub Desktop.

Select an option

Save goofmint/1593338 to your computer and use it in GitHub Desktop.
KIF demo code
+ (id)scenarioToSelectDifferentColors;
{
KIFTestScenario *scenario = [KIFTestScenario scenarioWithDescription:[NSString stringWithFormat:@"Select the a few different colors."]];
[scenario addStep:[KIFTestStep stepToTapViewWithAccessibilityLabel:@"Purple"]];
[scenario addStep:[KIFTestStep stepToTapViewWithAccessibilityLabel:@"Blue"]];
[scenario addStep:[KIFTestStep stepToTapViewWithAccessibilityLabel:@"Red"]];
[scenario addStep:[KIFTestStep stepToWaitForTimeInterval:5.0 description:@"An arbitrary wait just to demonstrate adding an additional step"]];
[scenario addStep:[KIFTestStep stepToWaitForViewWithAccessibilityLabel:@"Selected: Red"]];
return scenario;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment