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

How to associate function library at a run time?

707


How many number of actions possible in qtp?

605


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

2169


how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!

1737


How does qtp recognize objects in aut?

592






How does you pass optional arguments in qtp?

565


write the vb script for call to new action in qtp?

1861


What is the meaning Work bench?

1762


How to associate shared object repository to test in qtp?

505


how to convert 100 into hundred repees only and viceversa

1453


In qtp, explain what is keyword driven automation framework?

618


Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?

650


How you can replace string in qtp?

572


What are the flaws in water fall model and how to overcome it?

560


Explain the terms test and business component?

550