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 / ayushi saxena

set ocheck=description.create
ocheck("micclass").Value="WebCheckBox"
set checkcol=browser("micClass:=Browser").page("micClass:=Page").childobjects(ocheck)
for i=0 to checkcol.count -1
if i=9 OR i=10 OR i=13 then
checkcol(i).set "ON"
end if 
next 

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Limitations in QTP?

1742


Which recording modes need more memory?

585


How can you send user defined messages to test report?

583


How to find the path of folder in which the test is saved in qtp?

534


Why is action split used by qtp?

557






Hybrid framework supports Descriptive programming. Is it true?

651


In qtp, explain what is crypt object

598


How to test background color and dynamic images during run time can you put the check point for moving objects?

1447


Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.

1367


Analyzing the checpoint results?

597


Hi Frenz... I would like to take up the QTP certification . Can anyone tell me what is the procedure. n if anybody have the study materials pls fwd it to jkpunathil@gmail.com

1498


How you can find the absolute value of the number in qtp?

520


Give the syntax to import/export xls into qtp.

588


What is the Difference between test object and run time object?

609


How will you find the current time of the remote machine using QTP script?

594