-
Junior Member
how to capture tool tip in QTP ?
How to capture tool tip in QTP and do i need to make any changes in the TOOL?
-
Moderator
Re: how to capture tool tip in QTP ?
You can capture the tool tip by using GetROProperty and capture the "ALT" property of the object. I used the following to capture the ToolTip for the object "Quote" on this page.
SystemUtil.Run "iexplore.exe", "http://www.geekinterview.com/talk/8990-how-to-capture-tool-tip-qtp.html"
Wait (2)
If oQuote=Browser("micClass:=Browser", "creationTime:=0").Page("micClass:=Page").WebTable("name:=1").Image("file name:=quote.gif").Exist Then
strToolTip=Browser("micClass:=Browser", "creationTime:=0").Page("micClass:=Page").WebTable("name:=1").Image("file name:=quote.gif").GetROProperty ("ALT")
msgbox strToolTip
Reporter.ReportEvent micPass, "ToolTip Property of object Quote", "ToolTip Value Captured"
Else
Reporter.ReportEvent micFail, "ToolTip Property of object Quote", "ToolTip Value NOT Captured"
End If
-
Expert Member
Re: how to capture tool tip in QTP ?
Hi
How can we get tooltips for window based applications.
Example--
Say i move to the mouse curser to the time of the task manager.The tool tips will show me the time.
How can i capture that?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules