Help with error handling

Discuss RoboTask here
Post Reply
lacaca
Posts: 1
Joined: Tue Jan 29, 2019 10:54 am

Help with error handling

Post 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
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: Help with error handling

Post 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 4313 times
>>read more here<<
Oleg Yershov
Post Reply