07-07-2008, 08:16 PM
Hi,
I wanted to capture tool tip. for that I used following code.
But the problem is QTP executes it, also shows the result as "done" for that step. It actually (practically) doesn't hover the pointer at the link. Due to this, it does not capture the tool tip because tool tip does not appear only.
During execution, I manually hover the pointer at the link or anywhere, whatever tool tip appeared, it captured and it worked. Only the problem is, even after executing the "FireEvent" method successfully, it does not perform the action.
Please tell me what is the solution.
Code:-
I wanted to capture tool tip. for that I used following code.
But the problem is QTP executes it, also shows the result as "done" for that step. It actually (practically) doesn't hover the pointer at the link. Due to this, it does not capture the tool tip because tool tip does not appear only.
During execution, I manually hover the pointer at the link or anywhere, whatever tool tip appeared, it captured and it worked. Only the problem is, even after executing the "FireEvent" method successfully, it does not perform the action.
Please tell me what is the solution.
Code:-
Code:
' Place mouse cursor over the link
'Browser("abc").Page("abc").Frame("xyz").Link("opq").FireEvent "onmouseover"
'wait 1
' Grab tooltip
'ToolTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")
'msgbox (ToolTip)