Forum Discussion

RashmiBurgul's avatar
RashmiBurgul
New Contributor
9 years ago

to check the check box's status if wState property is not available

How to check the check box's status if wState property is not available. We are using Regions for checking the state of check box but every time we execute the script the pixel tollerance and colour tollerance values are coming different so the script is failing . Can you suggest any other method to check the state of check boxes?

4 Replies

  • djadhav's avatar
    djadhav
    Regular Contributor

    You can check the 'checked' property as shown here.

     

  • m_essaid's avatar
    m_essaid
    Valued Contributor

    hi,

    don't you have a cbChecked property ?

    or if you use the mapped name of your checkbox, something like that :

    if not (mycheckboxmappedname.checked) then

      mycheckboxmappedname.Click()

  • Thank you for replying my query.

     

    For the check Boxes in our application there is no such property as "Checked" or "cbChecked".

    Also I dont want to click on it , I just want to validate the state of the checkbox : whether it is checked or not.

     

    Thank You.

    • NisHera's avatar
      NisHera
      Valued Contributor

      what type of appliction you have?

      in all applications in present days, a check box have value representing True or False

      it may be  cbChecked /cbUnchecked or something else.

      may be you can not find it ..please go to object browser and carefully check what dose it have

      or may be TC can not access this property ...hv u compiled application as per this  ?