Created
January 11, 2012 06:18
-
-
Save goofmint/1593338 to your computer and use it in GitHub Desktop.
KIF demo code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| + (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