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 are 5 checkboxes per page, being able to increase this number with a list. Once a person is selected and a request is created, their checkbox is disabled so that the chosen user only has one request in progress. Then the next testcomplete run tells me the error that the checkbox is not accessible since it sees it disabled.
Is it possible to tell testcomplete to look for the closest checkbox that is available so that it automatically selects it?
Oh, sometimes when I use the object spy tool to manually tell testcomplete to check another box that is available at that time simply ignores me and launches the same error, even when I do the highlight thing to see if my mark was on the right spot. Idk why this happens, maybe is a code error
I'm only using keyword test bc I'm so noob with code and scripts. Thank u in advance and have a great day ☀️
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 propertiesYou 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