I'm not sure exactly what you're trying to do, but generally you'll want to
use the following with a traits set to UIAccessibilityTraitButton.
+ (id)stepToWaitForViewWithAccessibilityLabel:(NSString *)label traits:(
UIAccessibilityTraits)traits;
If you explicitly set the accessibility label for the button to something
then look for that value, otherwise UIButton will return the title of the
button as the accessibility label. This step simply waits for a button with
the given label to appear in the UI. This is useful in verifying that your
UI changes in response to some other action, for example if when starting a
new game you wanted to verify that the "Choose Number of Players" button
appeared.
If you're trying to find and tap a specific button, then use this step
instead:
+ (id)stepToTapViewWithAccessibilityLabel:(NSString *)label traits:(
UIAccessibilityTraits)traits;
On Tue, May 1, 2012 at 11:30 AM, kyleplattner <khplatt
...@gmail.com> wrote:
> How should I go about checking the title text label on a UIButton?