Forum Discussion
simon_glet
12 years agoRegular Contributor
Hi Katreen,
Create an Event Handler and add something like this:
Sincerely
Create an Event Handler and add something like this:
function GeneralEvents_OnUnexpectedWindow(Sender, Window, LogParams)
{
LogParams.Locked = true;
// Post an error message about unexpected windows to the test log
Log.Message("Unexpected window");
// Post an image of the whole screen to the test log
Log.Picture(Sys.Desktop.Picture(), "Unexpected window", "This image was added to TestLog from the GeneralEvents_OnUnexpectedWindow procedure")
Window.Close();
}
Sincerely