Forum Discussion
TanyaYatskovska
Alumni
13 years agoHi Lukas,
Thanks for sharing your example!
I have something to add: practically each object (web or window) has TestComplete's Picture method. So, if you want to save only an object to a file (not the whole page or the window), you can use this method. In this case, the code will look like this:
function saveObjectToFile(obj, fileName)
{
var pic = obj.Picture();
pic.SaveToFile(fileName);
}
I guess the Picture method is similar to QTP's CaptureBitmap method.