| || |
I've a tool tip that appears when the mouse is over a specific webelement, is there a way to display text in the tool tip in a message box or even in a variable?!
from MI KB # 26183 :
' Mouseover the object.
' Wait a second to allow the tooltip to be displayed.
' Capture the text of the tooltip object
txt= Window("nativeclass:=tooltips_class32").GetROPrope rty("text")
If your application uses a different class of object for the tooltip, you may need to use the "Object Spy" (Tools -> Object Spy) to spy on the tooltip to determine the class. After you click the hand button on the Object Spy window, the mouse cursor will turn to a hand icon. Press and hold the CTRL key to change the cursor to the normal state. Mouseover the control to bring up the tooltip. Once the tooltip is up, release the CTRL key and click on the tooltip immediately, before it disappears.
If you cannot use the Object Spy to determine the class of the tooltip object, you may need to contact your developer for this information.
I my web application the tooltip is display by moving the cursor in to a image. i tried what jobash told but when i tried.
for image no movesover property. can u give me other solution to get the tool tip
Thanks in Advance
Enable mouse events in the QTP properties.