Micro Focus QTP (UFT) Forums
Get tool tip text - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Get tool tip text (/Thread-Get-tool-tip-text)



Get tool tip text - ravi.gajul - 11-09-2011

Hi,

Upon searching the forum, I have found different ways to get the tool tip text
  1. .getROProperty("text")
  2. .getAttribute("alt")
  3. .obj.title
  4. window("nativeclass:=tooltips_class32").getROProperty("text")
also used setting.replaytype=2
for simulating mouse event
but that doesn't help.

Any other ways to get the tool tip?

Regards,
Ravi



RE: Get tool tip text - ravi.gajul - 11-11-2011

Any help?


RE: Get tool tip text - parminderdhiman84 - 11-11-2011

hi,

did u try to put .FireEvent "onmouseover" just before any of above lines


RE: Get tool tip text - ravi.gajul - 11-11-2011

yeah FireEvent followed by wait(3) was used.


RE: Get tool tip text - vIns - 11-12-2011

Hi..
Can u try this?

.Object.getAttribute("title")

if it does not work,
plz paste the html source code for which u r trying to access the tool tip.


RE: Get tool tip text - ravi.gajul - 11-15-2011

.object.getAttribute("title") doesn't help.there is no information about the tool tip in source code.


RE: Get tool tip text - Acharya_silu@yahoo.com - 11-15-2011

Ans:Hi,

I think if u try to record the tooltip by qtp it will not recorded,so i guess qtp may not handle this kind event.b'coz once i have tried with getting the tooltip of Google image but i couldn't .So i think but iam not sure this may be a drawback of QTP .

Thanks.


RE: Get tool tip text - ravi.gajul - 11-15-2011

Hi Acharya ,
Thanks for responding.QTP can very well handle such events.And yes, it can also get the tool tip of google image.
here is the code
Code:
Browser("name:=Google").Page("title:=Google").Image("html id:=hplogo").FireEvent "onmouseover"
wait(3)
msgbox Browser("name:=Google").Page("title:=Google").object.title

its just that I'm not finding a way in my case.


Regards,
Ravi