Facebook

Course Name Start Date Time Duration Registration Link
No Training Programs Scheduled ClickHere to Contact
Please mail To sudhakar@qtpsudhakar.com to Register for any training

Wednesday, June 10, 2009

How to capture the tooltip of a link?


Question
My query is regarding Tool Tip. I am having issue with capturing the toop tip.The problem is if the mouse is located at some diff. location. and i want to find out the tooptip for the link, which is  currently not being pointed by the mouse. how to get the tool tip for that link. the property of the link does not have the property as Alt. it is blank. so i trired out the below code to get but it is working only when the mouse is moved the location. else its displaying blank.
Answer
If it is image you can go for alt property to capture the tooltip. But here you need to get the tooltip of a link. There is no test object property is providing link tooltip. You can use RunTime Object Property to get the tooltip.

tooltip=Browser("XXXX" ).Page("YYYY").Link( "Link A").object.title
msgbox tooltip
title property is used for tooltip of a link.

No comments :

Post a Comment