Finding WPF tooltip elements - advice from Ranorex support

Ask general questions here.
JimLin
Posts: 53
Joined: Mon Jun 02, 2014 4:23 pm

Finding WPF tooltip elements - advice from Ranorex support

Post by JimLin » Wed Jun 19, 2019 12:39 pm

Hi,

I have recently been having major problems getting to the elements of a WPF tooltip popup. None of the suggested solutions on the Ranorex forum or the Ranorex documentation helped me to resolve the issue. I did not pose the question on the forum, as the snapshot revealed some proprietary information, so I raised a Ranorex support ticket. The advice they provides helped me solve the issue and get to the tooltip elements that I required, so I'm posting them here in case it helps other people. Thanks to Stephan from the support team for helping me to resolve the issue.
Ranorex_support_tooltip_advice_1.png
Ranorex_support_tooltip_advice_1.png (125.44 KiB) Viewed 132 times
Ranorex_support_tooltip_advice_2.png
Ranorex_support_tooltip_advice_2.png (116.08 KiB) Viewed 132 times
Ranorex_support_tooltip_advice_3.png
Ranorex_support_tooltip_advice_3.png (112.33 KiB) Viewed 132 times

JimLin
Posts: 53
Joined: Mon Jun 02, 2014 4:23 pm

Re: Finding WPF tooltip elements - advice from Ranorex support

Post by JimLin » Wed Jun 19, 2019 12:40 pm

Final screengrab as I could only attach 3 to the initial post:
Ranorex_support_tooltip_advice_4.png
Ranorex_support_tooltip_advice_4.png (103.63 KiB) Viewed 130 times

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

Re: Finding WPF tooltip elements - advice from Ranorex support

Post by odklizec » Wed Jun 19, 2019 1:00 pm

Hi,

Thanks for sharing this tip. I'm using this method for Angular based context/overlay elements, which are hard to get both via standard or instant tracking, and it works like a sharm.
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

Wim from CAL
Posts: 5
Joined: Fri Jun 14, 2019 8:58 am

Re: Finding WPF tooltip elements - advice from Ranorex support

Post by Wim from CAL » Wed Jun 19, 2019 3:23 pm

We are facing the same problem with the tooltips (angular with overlay components) . However when I use ctrl-Lwin in Spy to capture the tooltip the component is not shown within or outside the application. However this looks like the way to go.
Any ideas?

User avatar
Vega
Posts: 161
Joined: Mon Jul 11, 2016 2:15 pm

Re: Finding WPF tooltip elements - advice from Ranorex support

Post by Vega » Thu Jun 20, 2019 6:41 pm

You can try making a small test which simply moves your mouse to the object which produces a tooltip, and then capture a snapshot during your test. So at minimum your test would run the below 2 steps:

-Perform actions to make the tool tip appear such as mouse over
-Capture a snapshot of your application during the test (as a test step, not manually!)

This should include the tooltip within the snapshot and you can then use the path in your solution. Make sure your snapshot is targeting the top level of your application such as the DOM.

Hope this helps