Forum Discussion
Abramova
Staff
14 years agoHi,
If you would like to capture the image of the screen at run time, you can use the Desktop.Picture method. For example, the following script code demonstrates how to capture the screen picture and insert it into the test log:
function TestProc()
{
var w = Sys.Desktop.Picture();
Log.Picture(w, "Screen Image");
}
- praveenRV8 years agoNew Contributor
#Capture only the desired object or clip you want
obj = obj.Picture()
Log.Picture(obj, "my_image")
obj.SaveToFile("D:\\DATA\\my_image.png")