In the below code you can automate the web page using QTP and can find the text with the checkbox adjacent to it .
Create a description property with micclass for web checkbox.
Set oDesc = Description.create()
Set oDesc = Description.create()
oDesc(micclass).Value=WebCheckBox
Set intCount=Browser().Page().ChildObjects(oDesc)
strSearch =QTP
For i=0 to intCount.Count -1
strFound =Trim(intCount(i).GetROProperty(text))
if strFound=strSearch then
MsgBox(Found the checkbox with text) & strSearch
End If
Next
0 Comment(s)