![]() |
How to retrieve tool tip text of an object - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming) +--- Thread: How to retrieve tool tip text of an object (/Thread-How-to-retrieve-tool-tip-text-of-an-object) |
How to retrieve tool tip text of an object - Sreedevi - 10-08-2009 Hi, I want to check if a tool tip exists for a specific object and retrieve the text of the same. I use VBscripting in Qtp. plz help if anyone knows the answer.. Thanks in advance. ... Regards, Sreedevi. RE: How to retrieve tool tip text of an object - Saket - 10-08-2009 Hi Sreedevi, Have you tried searching this forum? there are many threads discussed on the same topic. try this example which is for a link object Code: Browser("").Page("").Frame("").Link("").mouseover or if you can see the tooltiptext in the properties list of object at spy then you can try with this as well Code: Browser("").Page("").Frame("").Link("").GetROProperty("TooltipText") does this help? RE: How to retrieve tool tip text of an object - Sreedevi - 10-08-2009 HI Saket, Thanks for ur quick reply.. However, i want to know if we can move the mouse over the specific objects on the screen using VBScript. This is because the code above can be used when the mouse is placed over the object required. Manaul interference is needed for the above code... Plz help in case if have answer.. Regards, Sreedevi. RE: How to retrieve tool tip text of an object - Saket - 10-08-2009 Changing the replay type to mouse should solve the issue use below code before the statements Code: Setting.WebPackage("ReplayType") = 2 RE: How to retrieve tool tip text of an object - venkatbatchu - 10-08-2009 Hi, U could use Code: m=Browser("xxxx").page("xxx").frame("xxxx") .Getrowproperty("alt") RE: How to retrieve tool tip text of an object - basanth27 - 10-08-2009 Saket's suggestion should work if the application you are working is a Web Based. Else it doesnt make a difference. If you are working on something for which you know the co-ordinates of the object then you can exploit user32.dll to get a method called SetCursorPos to the co-ordinate and then use Code: tooltip = Window("nativeclass:=tooltips_class32").GetROProperty("text") I have posted the solution on this forum several times. Search using SetCursorPos and you will get the solution. |