Micro Focus QTP (UFT) Forums
Loop for Drop Down menu - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Loop for Drop Down menu (/Thread-Loop-for-Drop-Down-menu)



Loop for Drop Down menu - J Gupta - 05-12-2009

I need to record a script for Drop Down box in QTP 8.2. There are number of options in Drop Down menu and I want to use some kind of loop to avoid manual record and playback for each option. Can someone please suggest me what can I do and what is the best way to achieve it.
PS: I am not good in descriptive programming.


RE: Loop for Drop Down menu - manumace111 - 07-04-2009

Hey Gupta,

You can use getitemcount() and getitemslist() functions to point to the i'th item in the drop down..give the position as argument..

Regards,
Manu


RE: Loop for Drop Down menu - basanth27 - 07-05-2009

Please be clear as to what you want to do ?? what do you mean by "Some kind of loop" ??

IF you want answers you have to supply detailed information. Else...you will have guyz pointing you to a different direction... A mistake not their's but urz...