Forum Discussion

zeekbiboo's avatar
zeekbiboo
New Contributor
8 months ago
Solved

Marking new checkboxes

Hi! I'm new to testcomplete. I'm working on some web tests and I'm learning how to use testcomplete at all. Well, I wanted to do a test with some checkboxes, the page works in such a way that there ...
  • Hassan_Ballan's avatar
    8 months ago

    Hello,

     Refer to https://support.smartbear.com/testcomplete/docs/testing-with/exploring-apps/object-spy/index.html for using Spy. Inspect Spy object detection to look for a property that checks the sate, for example enabled=true. Yo may need to switch the view from basic to advanced view.

    You need to address it in two steps:
    1-The checkbox row, as you have 5 you need to have 5 different mappings one for each
    2-The checkbox state enabled or disabled added to detection properties 

    You could create KeywordTests with following simple logic:
    If checkbox1 property enabled equal true, click it and go to Label
    If checkbox2 property enabled equal true, click it and go to Label
    If checkbox4 property enabled equal true, click it and go to Label
    If checkbox5 property enabled equal true, click it
    Label