Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get tool tip text
#1
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply
#2
Solved: 11 Years, 3 Months, 4 Weeks ago
Any help?
Reply
#3
Solved: 11 Years, 3 Months, 4 Weeks ago
hi,

did u try to put .FireEvent "onmouseover" just before any of above lines
Reply
#4
Solved: 11 Years, 3 Months, 4 Weeks ago
yeah FireEvent followed by wait(3) was used.
Reply
#5
Solved: 11 Years, 3 Months, 4 Weeks ago
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.
Reply
#6
Solved: 11 Years, 3 Months, 4 Weeks ago
.object.getAttribute("title") doesn't help.there is no information about the tool tip in source code.
Reply
#7
Solved: 11 Years, 3 Months, 4 Weeks ago
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.
Reply
#8
Solved: 11 Years, 3 Months, 4 Weeks ago
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need to Validate Text filed is blank after clicking on the Text box balak89 3 4,907 09-13-2015, 12:06 AM
Last Post: ADITI1992
  how to click on tool tip.. venkatesh9032 3 2,325 05-22-2015, 08:03 PM
Last Post: babu123
  How to capture tool tip within a web element frebuffi 3 3,764 11-10-2014, 10:06 AM
Last Post: learning_UFT
  I am trying to extract text from a webelement but it is generating blank text scenari excellentpawan 2 4,675 08-13-2013, 08:37 PM
Last Post: excellentpawan
  tool srikanth.gnr 0 1,917 01-05-2012, 12:31 PM
Last Post: srikanth.gnr

Forum Jump:


Users browsing this thread: 1 Guest(s)