Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

We stored into the objects OR and then write the scripting

2044


What is file database?

2180


can i compare two databases using QTP ?

2405


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

1939


am not having intrest in coding lang like c c++ java etc can i choose Testing tools as my carrier and please suggest me which tool is good (suitable for me)

1719


How to record application running on the Virtual machine?

1100


how interviews will be on QTP?

1952


What are the methods used in UFT to handle exceptions or run-time errors?

1119


Can the user toggle between using Local OR and shared OR for the same action?

979


How would you export a script from one pc to another in qtp?

1118


Can any one send me the QTP Basic Coding Samples?

2096


descriptive program for a yahoo mail that is in yahoo mail suppose check box mailid subject assume it is like this format all things are in webtable the question is suppose some mail ids are there in that mailids i want to select the check box wich is before a@gmail.com and after that i want to click on delete button

2227


could any help me please, how to work on visual foxpro application using UFT

2395


is it possible to add sheets to excel at runtime

4038


when to start the automation?

1948