Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Check title text label on button?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kyleplattner  
View profile  
 More options May 1 2012, 2:30 pm
From: kyleplattner <khplatt...@gmail.com>
Date: Tue, 1 May 2012 11:30:26 -0700 (PDT)
Local: Tues, May 1 2012 2:30 pm
Subject: Check title text label on button?
How should I go about checking the title text label on a UIButton?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Firestone  
View profile  
 More options May 1 2012, 4:26 pm
From: Eric Firestone <firest...@squareup.com>
Date: Tue, 1 May 2012 13:26:20 -0700
Local: Tues, May 1 2012 4:26 pm
Subject: Re: Check title text label on button?

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;


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kyleplattner  
View profile  
 More options May 3 2012, 3:41 pm
From: kyleplattner <khplatt...@gmail.com>
Date: Thu, 3 May 2012 12:41:12 -0700 (PDT)
Local: Thurs, May 3 2012 3:41 pm
Subject: Re: Check title text label on button?

It doesn't appear to be working. I am setting the label here

[scenario addStep:[KIFTestStep stepToSetTitle:@"300"
forButtonWithAccessibilityLabel:@"LEGENDEDITORmax_button"]];

which works fine - and then I check for it right afterwards using this:

[scenario addStep:[KIFTestStep stepToWaitForViewWithAccessibilityLabel:
@"LEGENDEDITORmax_button" value:@"300" traits:UIAccessibilityTraitButton]];

and it fails.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kyleplattner  
View profile  
 More options May 3 2012, 3:42 pm
From: kyleplattner <khplatt...@gmail.com>
Date: Thu, 3 May 2012 12:42:13 -0700 (PDT)
Local: Thurs, May 3 2012 3:42 pm
Subject: Re: Check title text label on button?

with this:

*FAIL (10.02s): Wait for view with accessibility label
"LEGENDEDITORmax_button" and accessibility value "300"*

*FAILING ERROR: Error Domain=KIFTest Code=0 "The step timed out after 10.00
seconds." UserInfo=0x12db6100 {NSUnderlyingError=0x12dacea0 "Waiting for
presence of accessibility element with label "LEGENDEDITORmax_button" and
accessibility value "300"", NSLocalizedDescription=The step timed out after
10.00 seconds.}*


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »