Micro Focus QTP (UFT) Forums
Checking Tool tip of field/Image/Radio Button - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Checking Tool tip of field/Image/Radio Button (/Thread-Checking-Tool-tip-of-field-Image-Radio-Button)



Checking Tool tip of field/Image/Radio Button - mayur.bidkar - 11-07-2008

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.


RE: Checking Tool tip of field/Image/Radio Button - mayur.bidkar - 11-13-2008

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