Micro Focus QTP (UFT) Forums
QTP gives wrong value through GetRoProperty - 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: QTP gives wrong value through GetRoProperty (/Thread-QTP-gives-wrong-value-through-GetRoProperty)



QTP gives wrong value through GetRoProperty - rahul3tech - 02-03-2012

In our application there are two value in drop down. We select first value and apply method GetRoProperties("text"). QTP gives second value.
Can any one rectify why this is happening?


RE: QTP gives wrong value through GetRoProperty - davey2582 - 02-03-2012

Without any further detail, it could be one that your application is displaying a value in the drop down but actually holding another, and the "text" property isn't the property you should be using to verify the held value.

Have you tried querying other RO properties? There may be a "value" property or similar that you could use instead?


RE: QTP gives wrong value through GetRoProperty - rajpes - 02-03-2012

Code:
browser().page().weblist().getroproperty("selection")