Micro Focus QTP (UFT) Forums
Selecting a value from a Dropdown - 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: Selecting a value from a Dropdown (/Thread-Selecting-a-value-from-a-Dropdown)

Pages: 1 2


RE: Selecting a value from a Dropdown - basanth27 - 06-07-2013

No, There is a click on the weblist i had added. Did you try or you were still waiting for my answer?


RE: Selecting a value from a Dropdown - qtpbeginner78 - 06-10-2013

Hi,

I tried to it but no luck.


Hi,

Yes i tried your code but still no luck.


RE: Selecting a value from a Dropdown - basanth27 - 06-10-2013

Interesting. Let me know if the msgbox returns the count at any point of time?
Code:
Do
    browser().page().weblist().Click  
    wait 1
    oItems = browser().page().weblist().GetROProperty("items count")
      msgbox oItems
    If oItems <> 0 then
       browser().page().weblist().click
       browser().page().weblist().select(4)
      Exit Do
    End If
    i=i+1
Loop Until oItems <> 0 or i>20