there are having 10 checkboxes..how can i check only first
5 check boxes by using descriptive programing..

Answer Posted / firoz shaik

A Small correction in the above code :

set objCheckBox=Description.Create()
objCheckBox("micclass").Value="WebCheckBox"
set objChildObjects=Browser("micclass:=Browser").Page
("micclass:=Page").Childobjects(odesc)


for i=1 to objChildObjects.Count
If i=5 Then
Exit For
End If
objChildObjects(i).Set "ON"
Next

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the views available in quicktest professional?

556


Is text area check point supports for web applications?

524


can test automation improve test effectiveness?

1480


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2160


Have you used xml check point in your project? How?

539






when I try to run below script in QTP "totalPages" value is 2. But i am getting error message (Type mismatch: 'totalPages' Line (): "For i=1 to totalPages".) totalPages=Browser("Name:=User").Page("Title:=User").WebElem ent("innertext:=of.*").GetROProperty("InnerText") msgbox totalPages For i=1 to totalPages rnum=Browser("Name:=User").Page("Title:=User").WebTa ble("column names:=User Name;ID;Last Name;First Name").GetRowWithCellText("store4") If rnum>0 Then r=rnum Exit for End If Browser("Name:=User").Page("Title:=User").WebElement ("html tag:=A","x:=471").Click MsgBox "Exit" Next

3260


To which environments does quicktest professional (qtp) supports?

581


What are parameterizing tests?

541


hou can we use vb script in qtp could u tell me breafly

1731


How to use Environment parameterization? Explain with an example.

1473


What environment does qtp run in?

613


Where is the Bitmap checkpoint information stored?

1753


What the differences are and best practical application of Object Repository?

581


Why we load add-ins in qtp?

622


What is the XML file architecture ?

1541