Micro Focus QTP (UFT) Forums
Drop down box issue - 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: Drop down box issue (/Thread-Drop-down-box-issue)



Drop down box issue - eroshan - 10-21-2009

Hi All

How to set a loop to get all the drop down box values of my drop down box while running the test ?

(i am recorded for select one value)

Thanks


RE: Drop down box issue - Saket - 10-21-2009

if you can paste your lines of code then we can help with your code itself


RE: Drop down box issue - eroshan - 10-21-2009

Thank for reply

This is some part of my code , second row select value from drop down box ,there are some more values in that drop down box , what i want is to select and test all the other drop down values in same running iteration.

Code:
With .Frame("loginTopFrame_3")
  ==>        .WebList("accSelect").Select "060101"
        .WebList("SDay").Select "10"
        .WebList("SMonth").Select "03"

Thank in advance


RE: Drop down box issue - Saket - 10-21-2009

Try this
Code:
With .Frame("loginTopFrame_3")
       'Get the number of items in the weblist
       nCnt = .WebList("accSelect").GetROProperty("items count")
       For i = 1 to ncnt
           'Get Item
    sItem = Browser("Yardi Systems, Inc. -").Page("Yardi Systems, Inc. -").Frame("filter").WebList("chooseApp").GetItem(i)
    .WebList("accSelect").Select sItem
      Next