Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP gives wrong value through GetRoProperty
#1
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?
Reply
#2
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?
Reply
#3
Code:
browser().page().weblist().getroproperty("selection")
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Childobject return wrong checkbox count.. VpnQTP 1 3,314 04-09-2015, 09:07 PM
Last Post: babu123
  How to use GetRoProperty for title svsaug6 2 10,333 08-26-2013, 03:36 AM
Last Post: Novemberrain81
  wrong code execution pkdhake 4 4,359 07-27-2013, 12:19 PM
Last Post: sreekanth chilam
  Wrong count for UsedRange rows and columns in datatable. qtpexpert 2 7,026 06-20-2012, 04:35 PM
Last Post: qtpexpert
  .Object vs GetROProperty? Archens 0 3,622 03-28-2012, 10:26 PM
Last Post: Archens

Forum Jump:


Users browsing this thread: 1 Guest(s)