Is there any way to capture screenshot of test application and save that screenshot to particular location via script in testcomplete.
0
votes
1 Answers
1
votes
Call the .Picture method of your application's main window to capture its image, then call the image's .SaveToFile method.
// JScript
var img = Sys.Process("notepad").Window("Notepad").Picture();
img.SaveToFile("C:\\Work\\img.png");