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

Answer Posted / naazneen

set desc_obj=description.create
desc_obj("micclass").value="WebCheckBox"
set obj=Browser("creationtime:=0").page("title:=.*").ChildObjects(desc_obj)
for i=1 to 5
obj(i).set "ON"
next

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Please provide specific examples of advanced/creative usage of QTP, including how impact & benefits for your project

1644


Through array we can execute the testcase how ? give me example

1408


Explain the difference between check point and output value?

499


What is expert view and keyword view?

629


Does quicktest professional (qtp) is unicode compatible?

544






What is meant by Step generator?what is the use of this? we have 3 steps know there what r all those.? can u all pls give me clear idea of this

1405


What are the things(properties, and other details) will be recorded while recording an object using normal recording?

1495


If you giving priority as p0, as a developer if I give priority as p2, What happens In user defined function ?

595


What are the data types in qtp?

671


How does you test a weblink which is changing dynamically?

558


Have you faced any problems with object repository?

594


What are the advantages of Object Repository?

594


In keyward driven framework what will be the step for yahoo login page ,inbox logout,plz explain in detail

1506


How is a Step generator used in UFT?

663


If I give some thousand tests to execute in two days what do you do?

586