Results 1 to 3 of 3

Thread: how to capture tool tip in QTP ?

  1. #1
    Junior Member
    Join Date
    Feb 2008
    Answers
    1

    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?


  2. #2

    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


  3. #3

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact