Micro Focus QTP (UFT) Forums
Capture tooltip text through bitmap checkpoint - 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: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Capture tooltip text through bitmap checkpoint (/Thread-Capture-tooltip-text-through-bitmap-checkpoint)



Capture tooltip text through bitmap checkpoint - Nicklas - 02-28-2012

Hi guys, I have a problem with the application I am working with. The object in question is a custommade javaobject similar to an javaedit that I want to catch the tooltip text from, and the developer of the object is not available. Its a part of a collector. My plan is to use a bitmap checkpoint after placing the cursor over the object and get a bitmap checkpoint to get the text.

The problem is that if I want to record a bitmap checkpoint i need to move the cursor = the tooltip is removed... i have tried to do it on a window level by clicking it while the tooltip is displaying but that didnt work either, it didnt capture the text, only the * sign next to the tooltip (indicating that the data in the editfield is bad). tooltiptext property does not contain any value.

Any ideas, thoughts regarding this? Thanks! I am sure there must be an easy solution for this?

Best regards,

Nicklas


RE: Capture tooltip text through bitmap checkpoint - Brian.Osborne - 10-04-2012

I'm in the same boat on this. I have a java object with tooltip and would like to capture a bitmap to display in the results.
I have the captured 'text' from the mouseover with the following code, but I need an image now.
Can anyone help?

Code:
Window("Windows Internet Explorer").RunAnalog "Track3"
CustomerServiceMouseover = Window("nativeclass:=tooltips_class32").GetROProperty("text")
If CustomerServiceMouseover = "Click here to access Customer Service screen" Then
    Reporter.ReportEvent micPass, "Customer Service Mouseover text", "The text in the mouseover matches what was expected", "tempsnapshot.png"
Else
    Reporter.ReportEvent micFail, "Customer Service Mouseover text", "The text in the mouseove did not match what was expected or mouseover wasn't present", "tempsnapshot.png"
End If

btw. I have tried to capture bitmap of Window("Windows Internet Exploer"), but this captures the page without the mouseover.


RE: Capture tooltip text through bitmap checkpoint - sshukla12 - 10-05-2012

Hi,

Try the below code:

Code:
Browser("a").Page("b").WebElement("c").Object.title

C-> your tool tip
Regards,
Sankalp


RE: Capture tooltip text through bitmap checkpoint - Brian.Osborne - 10-09-2012

I'm already capturing the text. I need an image of the tooltip.