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 do you send email with attachment from outlook using qtp ?

557


Explain the use of action split in qtp?

552


What are the check points can be inserted without recording?

590


How extensive or customized are the server logging and reporting requirements; are they considered an integral part of the system and do they require testing?

560


How to capture a window in QTP?

1521






HI I want to know the detials of QTP certifications such as syllabus, study Materil etc. Can any provide me all these details?? my mail ID is krishnuvk@yahoo.com

1523


How to creating an output value using quicktest professional (qtp)?

556


Which scripting language used by quicktest professional?

521


Can we write winrunner language i.e TSL in QTP tool?

1464


How to find operating system information using the qtp script?

576


I want to read XML file loaded in Quality center and compare the values with the values displayed in Application (web table).How can I do that

1385


How do we handle run-time errors?

568


How should I click on the right click menu objects When I trying to add the object properties to the OR.It is showing only Window(Window).Not all the objects of the window. Also while recording I found No script. How to solve this>.

1529


What is the use of ordinal identifier in qtp?

600


Generic function to search for the unique link in webtable and click on it

2477