02-01-2012, 05:11 PM
I would like to add one more point to it. png format takes less memory than bmp.
We can even associate the screenshot file to HP Run Result Viewer.
The last one is the optional parameter which we can specify in the reporterevent in order to see the screenshot in the result viewer itself.
Regards,
Ankesh
We can even associate the screenshot file to HP Run Result Viewer.
Code:
strFileName="c:\Googlemaps.png"
browser("name:=Google Maps").Page("title:=Google Maps").CaptureBitmap strFileName
Reporter.Reportevent mivPass,"Screenshot Capture","Screenhot Captured.",strFileName
The last one is the optional parameter which we can specify in the reporterevent in order to see the screenshot in the result viewer itself.
Regards,
Ankesh