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?
Can any one rectify why this is happening?
QTP gives wrong value through GetRoProperty
|
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") |
« Next Oldest | Next Newest »
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Childobject return wrong checkbox count.. | VpnQTP | 1 | 2,937 |
04-09-2015, 09:07 PM Last Post: babu123 |
|
How to use GetRoProperty for title | svsaug6 | 2 | 9,813 |
08-26-2013, 03:36 AM Last Post: Novemberrain81 |
|
wrong code execution | pkdhake | 4 | 3,847 |
07-27-2013, 12:19 PM Last Post: sreekanth chilam |
|
Wrong count for UsedRange rows and columns in datatable. | qtpexpert | 2 | 6,537 |
06-20-2012, 04:35 PM Last Post: qtpexpert |
|
.Object vs GetROProperty? | Archens | 0 | 3,378 |
03-28-2012, 10:26 PM Last Post: Archens |