If there are 100 checkboes in a page then how can we select 10th & 11th & 14th chexkboxes at once through descriptive programing in QTP using vb script.
Please send the answers...

Answer Posted / ranga

set ocheck=description.create
ocheck("micclass")="webCheckbox"
set checkcol=browser().page().childobjects(ocheck)
for i=0 to checkcol.count -1
if i=9 and i=10 and i=13 then
checkcol(i).set "ON"
end if 
next 

Is This Answer Correct ?    3 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to Test the mainframe application?

1818


With what extension you can save the list of tests in a file to run in test batch runner?

559


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

583


Can anyone tell me how i used QTP 9.2 use for GIS based S/w with an example?

1682


QTP 10.0 is not identifying web objects for IE 8.it is identifying like winObject.I installed HP patch QTPWEB_00037.Still getting issue

5506






Plz Explain How to access Or Store Script from VSS? Explain Real time work (qtp) where you store folders and next to how to you access that folders and how you maintain folders in VSS ? What are the Menu's in VSS? Suppose in Manual, by using Checkin Checkout u can access documents. how you access in QTp REal time?

1574


On what document base Descriptive programming is written if build is not yet ready ?

873


What are the types of object repositories? Which one is you using?

617


When Recovery scenario actually starts while testing the application?

1542


before launching qtp, we need to close all the open browsers u dont know what are all the browsers either it might be ie,mozilla etc and u dont know how many brosers are open.... u need to close all these before launching qtp.. can anyone plz temme d solution...

7220


What is ‘object spy’ and what is the function of object spy in qtp?

570


What is the new version of qtp which is recently released in the market?

637


Give the syntax to import/export xls into qtp.

584


can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?

1619


What is the virtual object?

636