Page 1 of 1

Help with error handling

Posted: Tue Jan 29, 2019 11:02 am
by lacaca
Hello,

I am putting together a task, and having some trouble as im not too familiar with the software.

I included the log below, basically what happens is that the part before the error "wait for window", its attempting to connect to a VNC server, and next step would be to enter password. What I want to do is add an IF statement saying if this errors happens then run this task. I tried to add the error handling task to the advanced tab but it basically run on any error thrown, and I only want it to run on this error.

I: 4/17/2018 6:23:54 AM: Executing "18.Run "VNC-Viewer-6.1.0-Windows-64bit.exe ""
I: 4/17/2018 6:23:54 AM: Executing "19.Wait For Window"
I: 4/17/2018 6:23:54 AM: Executing "20.Move To An Object"
I: 4/17/2018 6:23:54 AM: Executing "21.Double click left button"
I: 4/17/2018 6:23:54 AM: Executing "22.Wait For Window"
E: 4/17/2018 6:24:09 AM: Timeout is over
E: 4/17/2018 6:24:09 AM: An error occurred. Step #22 (Wait For Window).
E: 4/17/2018 6:24:09 AM: Task execution is aborted

Re: Help with error handling

Posted: Mon Feb 04, 2019 11:18 am
by Oleg
You can attach the error handling task to your main task.
Open the task editor and go to Advanced tab. Look at the screenshot
ErrorHandler.png
ErrorHandler.png (35.47 KiB) Viewed 4316 times
>>read more here<<