Write the code for select the 5 values from drop down list.
drop down list having the 10 values.
Answer Posted / balaji
For eg:If the weblist contains some x no. of values and if
we want to select only 10 out of it then
i=browser(..).Page(..).weblist(...).Getitemscount()
For j=0 to i
if j<5 then
browser(..).Page(..).weblist(...).select j
end if
next
This code will retrieve only the first 5 values
| Is This Answer Correct ? | 2 Yes | 5 No |
Post New Answer View All Answers
how to prepared for first for the first interview?
Is there anyway to automatically update the Datasource name in Database Checkpoints object when we migrate tests to a new release?
Describe synchronization point.
How to use setroproperty?
What is qtp window?
what is profile tool?
How to use transactions in qtp?
What is the use of text output value in quicktest professional?
Pls can anyone give me the entire code for the Keyword driven framework with respect to he Flight Reservation Window in detail with explanation. Pls explain in detail stepwise. Thanks a lot. Pls very urgent?.
How to carry out bit map check points in QTP
Explain more about the Test Fusion Report of QTP?
How to Upgrade or support firefox 2.0 version on QTP 9.0? I have installed QTP 9.0 and installed firefox 2.0. But in REcord and Run Settings, it shows firefox 1.5 in Web tab for browser selection.
What is post recovery scenario?
How to use parameterization in qtp?
Hoe can we do retesting using functions please give the code for it using login page