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
How do you send email with attachment from outlook using qtp ?
Explain the use of action split in qtp?
What are the check points can be inserted without recording?
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?
How to capture a window in QTP?
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
How to creating an output value using quicktest professional (qtp)?
Which scripting language used by quicktest professional?
Can we write winrunner language i.e TSL in QTP tool?
How to find operating system information using the qtp script?
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
How do we handle run-time errors?
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>.
What is the use of ordinal identifier in qtp?
Generic function to search for the unique link in webtable and click on it