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

Answer Posted / kishore

Get the count of elements in the weblist


for i = 0 to count-1

result = randomnumber(i,count-1)


browser("xyz").page("xyz").weblist(" ") .select result

next

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to suppress warnings from the test results page?

608


What is action split and the purpose of using this in qtp?

537


why text area checkpoints cannot used for web applications

1885


what is the difference between built-i function and In-built function?

1639


How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?

546






What are the main differences of qtp and win runner?

599


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1357


What is the new version of qtp which is recently released in the market?

644


How are actions and functions different in QTP?

660


How do know the number of browsers opened?

629


Hi How to retrieve data from web element line by line?

1575


what the difference between shared repository and per action repository?

552


How to use Environment parameterization? Explain with an example.

1485


desribe a situation where u faced a stressful situation and how did u cope with it

1413


In what occasion we can specify global sheet and action sheet?

572