Validating ToolTip in Edge/Chrome

Ask general questions here.
zapjok
Posts: 2
Joined: Thu Mar 16, 2023 10:52 am

Validating ToolTip in Edge/Chrome

Post by zapjok » Thu Mar 16, 2023 2:41 pm

Hi everyone,

I would want to validate a tooltip that appears after hovering mouse over a link that has title attribute. In FireFox it appears under form element and I was able to add it to repository as it follows:
/form[@processname='firefox' and @accessiblerole='ToolTip' and @accessiblestate~'ReadOnly']
Text is also reachable, so I can validate it.

However, in Edge/Chrome when I hover over the link and the tooltip appears, I can only see a container element appearing without any kind of details, child element, or text within. Attached are the screenshots of the new element appearing in Ranorex Spy, directly under Host.

Do you have info about, if its possible to add and validate text of a tooltip in Chrome/Edge with the following versions?
Ranorex Version: 10.2.2 (32-bit)
Chrome version: Version 111.0.5563.65 (official build) (64-Bit)
Edges version: Version 111.0.1661.41 (official build) (64-Bit)

Thank you in advance,
Zoltan
You do not have the required permissions to view the files attached to this post.

mrt
Posts: 245
Joined: Mon Mar 16, 2020 11:31 am

Re: Validating ToolTip in Edge/Chrome

Post by mrt » Thu Mar 16, 2023 4:00 pm

Without having a snapshot for deeper insight it is hard to tell.

Usually I can validate tooltips fine in Chrome, but there are tons of different implementations of tooltips out there...
Your container is named "dropdown".
So this looks like the element is a dropdown (maybe the one you are hovering on?), and not a tooltip

What you could try is to open Chrome DevTools console (F12) and watch the DevTools while you hover onf/off the element, most likely you will see the tooltip showing and disappearing.

zapjok
Posts: 2
Joined: Thu Mar 16, 2023 10:52 am

Re: Validating ToolTip in Edge/Chrome

Post by zapjok » Fri Mar 17, 2023 5:30 pm

Thank you for the tips, I will give it a go!