Hi,
The low-level procedure is not paused if an unexpected window appears during the run. You cannot temporarily stop the procedure's execution in such cases. As a workaround, you can divide your procedure into two procedures. Then, you can call these two procedures from script. Between the calls, you need to check whether an unexpected window appears and handle it. For example:
function Test()
{
var p, unexpWnd;
//Execute the first part of the test
LLCollection1.LLP1.Execute();
// Handle a possible unexpected window
p = Sys.Process("MyApplication");
unexpWnd = p.WaitWindow("MyWindow", "Error", -1, 1000);
if (unexpWnd.Exists)
{
Log.Picture(unexpWnd.Picture(), "An unexpected window is detected.");
unexpWnd.Close();
}
// Continue testing (execute the second part of the test)
LLCollection1.LLP2.Execute();
}