Hi
You can as well use HTML DOM to access IE and get tool tip .
Here is how you will do that:
tool_tip = Browser("micclass:=Browser").Page
("micclass:=Page").WebElement("text:=MyYahoo!").object.title
msgbox tool_tip
Note:
with ".object" you can access Internet explorer HTML tags and TITLE is
one of the tags that i use to get tool tip.(HTML DOM)
Syntax: QTPOBJECT.object.title
Hope this helps.
-Savy
On Apr 24, 5:47 am, govind sirvi <[email protected]> wrote:
> Hi,
> Find the below code which might help u
> Systemutil.run "iexplore.exe","yahoo.com"
> Browser("micclass:=Browser").Page("micclass:=Page").WebElement("text:=MyYahoo!").FireEvent
> "onmouseover"
> wait 5
> ' Grab tooltip
> ToolTip = Window("nativeclass:=tooltips_class32").GetROProperty("text")
> 'msgbox ToolTip
>
> On 4/24/09, Madhu <[email protected]> wrote:
>
>
>
> > Hi
> > Can anyone tell me how to fetch the tool tip of an object in a webpage?
> > Madhu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---