Micro Focus QTP (UFT) Forums

Full Version: QTP gives wrong value through GetRoProperty
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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?
Code:
browser().page().weblist().getroproperty("selection")