Displayed text is different then Caption shown in Spy

Ask general questions here.
alpesh.dhakad
Posts: 25
Joined: Wed Oct 31, 2018 2:10 pm

Displayed text is different then Caption shown in Spy

Post by alpesh.dhakad » Wed Feb 19, 2020 8:02 am

Hi,
Displayed text is different then caption shown in Spy.
When I have used Ranorex Spy to identify objects then displayed text is different then caption identified via Spy.

But when we screenshot then retrieved screenshot is correct but caption property is incorrect.
I have also checked with development team and they have not created any code like this. For other rows it is displaying properly.

Could you please check why is it like this as many of my scripts are failing due to this ?

Refer attached snapshot and screenshot.
Let me know if you need any other information in this regard.
Attachments
Screnshot2 - Other rows text are proper.PNG
Screenshot 2
Screnshot2 - Other rows text are proper.PNG (116.59 KiB) Viewed 133 times
Screenshot1 - Caption is Printer though display text is PLX800-E.PNG
Screenshot 1
Screenshot1 - Caption is Printer though display text is PLX800-E.PNG (111.2 KiB) Viewed 133 times
Caption is different then displayed text.rxsnp
Snapshot file of page
(2.03 MiB) Downloaded 7 times

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 6188
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Displayed text is different then Caption shown in Spy

Post by odklizec » Wed Feb 19, 2020 8:30 am

Hi,

I've checked the snapshot and there is indeed something weird about the way Ranorex reads this table. If you check that particular row (with wrong text/caption), and you select entire row, it shows no screenshots, unlike other rows. So it looks as if the table reading is somehow corrupted?
Table_Rows.png
Table_Rows.png (88.3 KiB) Viewed 131 times
I think this kind of issue is something that must be checked directly with the app and by Ranorex folks? I would suggest to create a support ticket and request a remote session with Ranorex folks. There is most probably nothing anyone here can do or suggest. Definitely not without examining the app.

PS: I see the table is WPF based, so what you can try is to change the WPF Legacy/ UIA Interaction settings and check if the cell is recognized correctly with different settings?
WPF_modes.png
WPF_modes.png (26.76 KiB) Viewed 128 times
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration