10-04-2012, 06:21 PM
(This post was last modified: 10-04-2012, 06:24 PM by Brian.Osborne.)
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?
btw. I have tried to capture bitmap of Window("Windows Internet Exploer"), but this captures the page without the mouseover.
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.