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
They asked by using qtp recording writing scripting
how to post xml data from QTP scripts to any application?
How to test fly out menu in qtp?
Where we can use the synchronization?
please any one can explain the keyword driven framework. with gmail example.
What is the difference between qtp and selenium?
What is QTP and the use of QTP in TD?
Differences between text and test area checkpoints?
hi frinds i need help .i have 4 + yrs exp in testing and nearly 2 yrs exp in QTP and QC .currently iam working north fast 2 yrs iam looking for job in south is there any openings plz letme know my mail id is pbre1980@gmail.com
An action has both shared and local OR associated with it and both have the same object in them. In the test which one will be considered?
What are the main differences of qtp and win runner?
Will down time for server and content maintenance/upgrades be allowed? how much?
Hi! Using Descriptive Programming How do we get Parent object for an object by writing script(DP). Say, i want to get a parent object for a "Link" in a web page by writing script in Descriptive Programming.
What are the features of quick test pro(qtp)?
In qtp, how you can use xpath to identify objects?