Get tooltip text from desktop application

I want to retrieve the tooltip text after hovering the mouse over it. Which activities need to be used to perform this action?

Areas of Concern:

  1. If I move the mouse away from the base text, the tooltip disappears, making it impossible to select the tooltip text for activities like getText.
  2. Even though I use a pause, I need to hover the mouse over the base text to get the tooltip.

How can I achieve this?

Hi @pd2897

use the Hover activity to move the mouse over the element, then add a Delay to allow the tooltip to appear, and finally use the Get Text activity to capture the tooltip text. If the tooltip disappears too quickly, consider using a Click activity on the base element to keep the tooltip visible while retrieving the text.

If you found helpful, mark as a solution.
Thanks

Hi @pd2897,
If its web based application try to change the CSS property to visible the tool tip value and get the selector.
Its bit hard to get the selector but you can able to get the selector. later you can use move cursor activity to view the tooltip value and using get text activity you can able to get the value.

Regards,
Arivu

Hi @pd2897,

Sometimes, a tooltip text can be a child of the element, perhaps you can use the Find Children Activity, and see if it appears there.

Hope this helps!


As you mentioned, I added a duration. However, even when we use the “Get Text” activity, we still need to highlight the tooltip text, right? Since the tooltip text disappears, how can we select the tooltip text?

@pd2897,

Use Get Attribute activity for this.

To extract tooltip text in UiPath, use the “Get Attribute” activity and set the “Attribute” property to “title” or “tooltip”.

Hi @pd2897

Please try - Instead of using Get Text , use the Get Attribute activity to retrieve the tooltip text directly from the element’s attributes, such as title or data-tooltip . Might be this method can often bypass the issue of the tooltip disappearing.

Happy Automation

So, which UI element should be selected for “Indicate target on screen”?

So, which UI element should be selected for ‘Indicate target on screen’?

@pd2897,

The ‘base text’ ui element

Didn’t work Get Attribute activity. Title property contains something else and no property as tooltip under property explorer in UI explorer

@pd2897

Try OCR:
start by hovering over the target element, which will trigger the tooltip to appear. After hovering, introduce a delay of 2-3 seconds to ensure the tooltip is fully visible. Once the tooltip is displayed, use Optical Character Recognition (OCR) technology to capture the text within the tooltip. Finally, utilize the captured text for your intended actions.
happy Automation