Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem while extracting tooltip!
#1
Solved: 11 Years, 4 Months ago
Hi All...

I need to take the tooltips from a webpage...
I tried the below script from some previos post...

Code:
Browser("Yahoo!").Page("Yahoo!").WebElement("text:=My Yahoo!").FireEvent "onmouseover"
wait 1
' Grab tooltip
ToolTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")
msgbox ToolTip

I am getting the following error...
Cannot identify the object "[ Window ]" (of class Window). Verify that this object's properties match an object currently displayed in your application.
Line (4):
Code:
"ToolTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")".

I tried using Object spy...but when I am holding the control key , the tooltip was not displaying..

Please suggest what can I do....

Thanks in advance.

Ramya
Reply
#2
Solved: 11 Years, 4 Months ago
You can get the tool tip by getting title property of the Object.

As you said if you want to Get tht Tool Tip of Browser("Yahoo!").Page("Yahoo!").WebElement("text:=My Yahoo!")

You can directly get it using the the stmt Browser("Yahoo!").Page("Yahoo!").WebElement("text:=My Yahoo!").GetROProperty("title")
Let me know if it does not work
Reply
#3
Solved: 11 Years, 4 Months ago
Hi try this
Code:
Browser("Yahoo!").Page("Yahoo!").Link("My Yahoo").getroproperty("outerhtml")
we will get the outer html tag like <A Title="Go to My Yahoo!,href=........</A>.from this html tag we have to segregare the Output by simple programming...try this let me know if it doenst work.
Reply
#4
Solved: 11 Years, 4 Months ago
Hi,

Use the "alt" property to know the tooltip.

Here is the sample script:
Code:
str=browser("MSN.com").Page("MSN.com").Image("Deadliest Cars // Crash").GetROProperty("alt")
msgbox(str)
Thanks & Regards,
Uday.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Capture tooltip text through bitmap checkpoint Nicklas 3 4,613 10-09-2012, 07:35 PM
Last Post: Brian.Osborne
  Capturing Tooltip text in firefox using QTP 10.0 sudhab 1 3,034 11-28-2011, 05:16 PM
Last Post: ravi.gajul
  WinTreeView - Trouble in extracting the content of the Node Gurushankar 0 3,641 11-21-2011, 07:15 PM
Last Post: Gurushankar
  Get nativeclass of a tooltip Pallavi 9 8,992 07-17-2009, 04:50 PM
Last Post: balakrish
  extracting tool tip for java tree jagadeeswar 0 2,033 01-16-2009, 07:41 PM
Last Post: jagadeeswar

Forum Jump:


Users browsing this thread: 1 Guest(s)