Retrieving 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: Retrieving Value from a dropdown (/Thread-Retrieving-Value-from-a-dropdown) |
Retrieving Value from a dropdown - Anna - 07-16-2008 I have to get the state name out of a menu. It does not have to be by number. It just has to be what is visible after something is selected. What is the syntax for that? RE: Retrieving Value from a dropdown - QADBA - 07-16-2008 On a web page you can use something like the following code to get the value from a dropdown: Code: myvalue = Browser("xyz").Page("xyz").WebList("xyz").GetROProperty("Value") RE: Retrieving Value from a dropdown - Anna - 07-16-2008 Thanks |