For any corporate training requirements Please mail To sudhakar@qtpsudhakar.com
New Schedule in MindQ Systems, Madhapur By SUDHAKAR
Course Name Date Time Duration Type Branch
Selenium+Appium+Katalon 9th June 2018 9.30 AM - 11 AM IST 35 Days ClassRoom + Online Mind Q Madhapur

A book "Cracking the QTP interview" authored by Sudhakar.Read More. Buy From FlipKart

Wednesday, June 10, 2009

How to capture the tooltip of a link?

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.
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