Micro Focus QTP (UFT) Forums
Issue wrt checking a box - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Regular Expressions (https://www.learnqtp.com/forums/Forum-UFT-QTP-Regular-Expressions)
+--- Thread: Issue wrt checking a box (/Thread-Issue-wrt-checking-a-box)



Issue wrt checking a box - karanthsp - 07-03-2008

Hi,

I have an application here.
I want to click on one of the checkbox provided.
the problem is the number of checkboxes keep increasing [ right now its 10 , but it can go up to N ].

i cannot use "Index" option.

all have the same propertits. can some one please help me out.
My lead told me to get the row count....put ir in a loop....verify the name assicoated next to the check box and then if names are matching , go ahead and click it.

can some one give a rough idea


RE: Issue wrt checking a box - Ankur - 07-03-2008

yes what your lead told seems fine... what is the problem?


RE: Issue wrt checking a box - surya_7mar - 07-28-2008

I am sure that all the check boxes will be present in a Table. First try to get the row on which you want to check the check box.

ex: you want to check the Check box at Row 5, Column 2
Code:
Set wCheckBox = Browser("something").Page("something").WebTable("something").ChildItem(5,2,"WebCheckBox", 0)
wCheckBox.Set "ON"