Getting the text of a tool tip
Here is how you can get the text of a tool tip.
- Identify the tool tip manually through the controller. It may be some div, for example.
- In your script, now you can do the following.
- Do a _mouseOver(element) to view the tooltip div.
- Do a getText() of the tooltip div to get the tooltip text.
Example:
_navigateTo("http://jqueryui.com/tooltip/");_mouseOver(_textbox("age")); // To view tooltip of age textbox._alert(_getText(_div("ui-tooltip-content"))); // We identified the div by quick mouse over on the tool tip.
