How to validate if the checkbox is checked or unchecked

4 posts, 0 answers
  1. Ray Lin
    Ray Lin avatar
    20 posts
    Member since:
    May 2010

    Posted 29 Jun 2010 Link to this post

    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
  2. Missing user
    Missing user avatar

    Posted 29 Jun 2010 Link to this post

    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
  3. Ray Lin
    Ray Lin avatar
    20 posts
    Member since:
    May 2010

    Posted 30 Jun 2010 Link to this post

    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

  4. Missing user
    Missing user avatar

    Posted 30 Jun 2010 Link to this post

    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
Back to Top