Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issue wrt checking a box
#1
Solved: 11 Years, 4 Months, 3 Weeks ago
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
Reply
#2
Solved: 11 Years, 4 Months, 3 Weeks ago
yes what your lead told seems fine... what is the problem?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 4 Months, 3 Weeks ago
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"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)