Forum Discussion

sujatha_babu's avatar
sujatha_babu
Contributor
12 years ago

Tooltip testing

Hi,



I am using Test Complete 9.30. I do Script recording. In my WPF application, i have a tooltip - each time when recorded script is played want to verify the tooltip. can i know support for this.



Regards,

Sujatha B

3 Replies

  • nilesh_singhai's avatar
    nilesh_singhai
    Occasional Contributor
    Hi Tanya,





    My Requirement is to Capture the Tooltip caption and validate the same.


    Set p = Sys.Process("YourApplication")  ' Application object



    Set h = p.WaitWindow("THintWindow", "*", -1, 10000)   

    if h.Exists then

            Log.Message(h.WndCaption)

    End If



    As suggested i tried the Code which I found from link provided by you.



    The parameter for WaitWindow method is WndClass of the Tooltip(in the above code snippet it is 'THintWindow') .But for some reason I am not able to get the wndclass of the Tooltip.

    can you please suggest.