Forum Discussion

HirendraSingh's avatar
HirendraSingh
Occasional Contributor
4 days ago
Solved

Read text from tooltip on hover

I want to read all the text displayed on tooltip and need to compare it with searched value, as when I hoven on record then tooltip appears with details and as soon as mouse is moved to another recor...
  • rraghvani's avatar
    rraghvani
    4 days ago

    I thought the popup that shows "ProfitCenter..." was a dialog, and that your were hovering over "Contains" dropdown list or "Testing" text field as highlighted! You need to be thoroughly clear when explaining, as we know nothing about your application.

    Since it's a web application, it makes it easier. Use the Object Browser, and then hover over  Details item "Providing Third Party Inspection...". The hierarchy list of items shown in the Object Browser will show another child item - this will most likely be the tooltip. 

    When hovering over the tooltip, Object Browser shows a new child item.

    When the details item loses focus, the child item will be removed. 

    When the item has lost focus, tooltip child item is removed

    Different web application behave differently, so it may not be exactly the same as I have explained it. But this will point you in the right direction, on how to locate the tooltip.

    You can also use browsers' DevTools to locate the class name too.

    You can then capture the contents of the tooltip, and use aqObject.CompareProperty method to verify the object’s property value according to your condition