Micro Focus QTP (UFT) Forums

Full Version: Checking Tool tip of field/Image/Radio Button
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How to chk tool tip given to a specific field is correct or not
I tried with
eg.
Code:
transportmode=Browser("Browser").Page("Mode of Transportation").WebEdit("txtTransportationMode").GetROProperty("alt")
msgbox transportmode

msgbox displays nothing, blank msgbox gets displayed with ok button.
Here is the code -
Code:
Browser("Browser").Page("").WebElement("").FireEvent "onmouseover"
ToolTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")
wait 1
If tooltip = "" Then
    reporter.ReportEvent 0,"Tool Tip","Valid Tool Tip"
    else
    reporter.ReportEvent 1,"Tool Tip","Invalid Tool Tip"
End If

Mayur