Search code examples
testingautomationsahi

Tooltip text testing in Sahi


How to test Tooltip text by mouse hovering in Sahi tool? I have to hover by mouse on a graph and test the text appear in tooltip after hovering. But I am not able to do with Sahi. Please tell how to do that?


Solution

  • Please refer the topic on tooltip here . If that is what you are trying to do then it is easy to find the particular element and get the title attribute.

    var $myelm = _div("Id or Text");
    var $attributeName = "title";
    var $tooltip = _getAttribute($myelm, $attributeName);