How to test tooltip using QTP.
In this video i have covered following
how to test tooltip of a link using QTP
how to test tooltip of a image using QTP
Following is the code:
'print browser("MouseOver Examples").Page("MouseOver Examples").Link("Uday").Object.title
'Setting.WebPackage("ReplayType")=2
'Set obj=browser("MouseOver Examples").Page("MouseOver Examples").Link("Uday")
''obj.FireEvent "onmouseover"
'obj.Mouseover
'wait(2)
''print obj.Object.title
'
'tTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")
'print tTip
'
'Setting.WebPackage("ReplayType")=1
set obj=browser("MouseOver Examples").Page("MouseOver Examples").Image("Ujwala")
print obj.GetROProperty("alt")