Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture Tool tip
#1
Solved: 10 Years, 9 Months ago
I was facing difficulty in capturing tooltip of the webelement that comes in the webapplication.

I tried up with mousemove but even that is not working.
Kindly suggets some method
Reply
#2
Solved: 10 Years, 9 Months ago
Check this article 4 Ways to capture Tool tips in UFT

You can also capture the text property from the tooltips_class32 control using using MouseOver method ( for web objects) otherwise MouseMove method.

Code:
' Mouseover
Browser("XXXX").Page("YYYY").Link("Link A").MouseOver
' Wait 1 second to get the tool tip displayed.
wait 1
' Capture the text of the tooltip object
txt= Window("nativeclass:=tooltips_class32").GetROProperty("text")
msgbox txt

[Check the class type if your application use different class for tooltip object, using object spy)
Reply
#3
Solved: 10 Years, 9 Months ago
Hi Ankur

But your code works when i am placing my mouse over the object.Can't we do it dynamically.
Reply
#4
Solved: 10 Years, 9 Months ago
Hi Ankur

Your code works when ever i am placing my mouse over the object.Is there any dynamic way to handle this.
Reply
#5
Solved: 10 Years, 9 Months ago
what do you mean by "dynamically"?
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#6
Solved: 10 Years, 9 Months ago
Have you found a solution yet?
Reply
#7
Solved: 10 Years, 9 Months ago
Even you can use the below code:
Code:
ttext=Browser("XXXX").Page("YYYY").Link("Link A").GetROProperty("TooltipText")
msgbox ttext
Reply
#8
Solved: 10 Years, 9 Months ago
wt abt this: GetROProperty("alt") ?
Reply
#9
Solved: 10 Years, 9 Months ago
Hi Ankur,
I need to place my mouse pointer over the link manually to pass the test script, otherwise it doesn't move the mouse pointer automatically to the link. and test fails(gives error)

"Cannot identify the object "[ Window ]" (of class Window). Verify that this object's properties match an object currently displayed in your application."

I am using QTP 9.0 version.

regards,
Yugal
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to validate tool tip in a web page? qtplearner88 3 4,149 04-24-2013, 05:19 PM
Last Post: nucleation
  How to retrieve tool tip text of an object Sreedevi 5 5,361 10-08-2009, 11:41 AM
Last Post: basanth27
  Tool Tip bfakruddin 0 1,788 03-05-2009, 05:36 PM
Last Post: bfakruddin
  Checking Tool tip of field/Image/Radio Button mayur.bidkar 1 3,066 11-13-2008, 05:25 PM
Last Post: mayur.bidkar
  Tool tip capture psreddy 1 3,087 11-06-2008, 06:07 PM
Last Post: krishnas.tester

Forum Jump:


Users browsing this thread: 1 Guest(s)