Forum Discussion
Ryan_Moran
11 years agoValued Contributor
The "Test Visualizer" under project settings does this when enabled.
Additionally you can take an image of a specific object, immediately after clicking, like so:
//JScript
var wshell = new ActiveXObject('WScript.Shell');
wshell.run("notepad");
var object = Sys.Process("notepad").WaitWindow("Notepad", "Untitled*", 1, 10000);
object.click();
Log.Picture(object, "Example of capturing an image.");
- Dewayne_Pinion11 years agoContributor
Thanks Ryan,
I should have been more specific. The item I am clicking on is on a pop up form, that disappears when clicked. So I cannot perform an image capture after the click occurs since the control will not be visible. Is there a way to have testcomplete create the log picture as the button is being clicked?
Thanks
- Ryan_Moran11 years agoValued Contributor
Aside from either using the Test Visualizer, or moving the mouse, taking the image, and then actually clicking...
I don't believe so. It sounds as though you could just take the image prior to clicking though unless I'm misunderstanding you.