This is a migrated thread and some comments may be shown as answers.

How to validate if the checkbox is checked or unchecked

3 Answers 239 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ray Lin
Top achievements
Rank 1
Ray Lin asked on 29 Jun 2010, 09:58 PM
Hi, I have one question about the checkbox.
When I check it and uncheck it, I find the source code is the same .

Could you tell me how to  validate if the checkbox is checked and unchecked on the silverlight page?

I tried to use  ArtOfTest.WebAii.Silverlight.UI.Visibility.Visible, but it doesn't work for me.

Thanks,

Ray

3 Answers, 1 is accepted

Sort by
0
Missing User
answered on 29 Jun 2010, 11:41 PM
Hi Ray,

Just to quickly confirm, are you referring to WebUI Developer Edition or the WebAii Framework? Based on the information in this ticket submission, your previous posts and your download history, it looks like you are using Dev or QA Edition.

For either Edition, you can create a verification when you highlight the CheckBox, then click the CheckBox fanout translator in the Elements Menu. The verification should be in the Quick Task options for the Elements Menu.

Please see the 'Adding Quick Verification Steps' in the Dev Edition Quick Start Guide for reference.

If you are refering to WebAii Framework code, please let us know and I can respond with code.

Regards,
Nelson Son
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ray Lin
Top achievements
Rank 1
answered on 30 Jun 2010, 05:45 PM
Nelson.
 Thanks for your reply.  I use WebUI test studio Dev version

  I have another question. On the UI, if I have 5 checkboxes, some are checked and some are unchecked . When I record checked and unchecked checkboxes and I converted it to MS test, I find the source code is the same. 

 I would like to do the following way:
1. if the checkbox is checked, then mark it unchecked.
2. if the checkbox is  unchecked, then mark it checked 

Is there any source code to force the silverlight UI to be checked or unchecked?

Thanks,

Ray

0
Missing User
answered on 30 Jun 2010, 08:35 PM
Hi again Ray,

Thanks for the confirmation. The code you mentioned is similar since, currently, the only way to automate the CheckBox control is to simulate a real mouse click against it, which is what the code does.

Unfortunately, there is not a way to automate checking and unchecking the way you mentioned.

Sincerely,
Nelson
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ray Lin
Top achievements
Rank 1
Answers by
Missing User
Ray Lin
Top achievements
Rank 1
Share this question
or