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...

how can you select random value for every iteration from a
weblist

Answer Posted / amarendra kothuru

First get the Items count from the List and Use the
RandomNumber() function to get the random Index value. The
below code will work

ItemsCount = Browser("Browsername").Page("PageTile").WebList
("WebListName").GetROProperty("items count")
Browser("Browsername").Page("PageTile").WebList
("WebListName").Select ("#" & RandomNumber(0,ItemsCount))

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I would like to directly import XL file and work on that XL file directly in QTp script in that XL sheet need to allocate workbench,XL sheet and generate two bar graphs automatically how to do that? plz let me know any answers?

1995


What are the features of quick test pro(qtp)?

944


Explain the concept of object repository & how qtp recognizes objects?

1036


How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.

2197


what is the difference between development and testing

3548


What are the data types in qtp?

1047


Explain the differences between table and db checkpoints?

944


What are the differences between table and db checkpoints?

959


What are the advantages of a Hybrid framework?

1058


when to start the automation?

1900


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

1133


Create flight reservation login descriptive programing (Condition: Remove the value and substitute with a variable, and then call the validation from Excel) Plz help me....... very urgent.........

2129


how can i call function (which has link with excell sheet at a remote location) within another function

1967


Explain about Test Fusion Report of QTP?

1002


Can U Explain about QTP tool from older version to latest version also its differences?

1927