Help with error handling

Discuss RoboTask here

Help with error handling

Postby lacaca » Tue Jan 29, 2019 11:02 am

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
lacaca
 
Posts: 1
Joined: Tue Jan 29, 2019 10:54 am

Re: Help with error handling

Postby Oleg » Mon Feb 04, 2019 11:18 am

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 589 times


>>read more here<<
Oleg Yershov
Oleg
Site Admin
 
Posts: 2455
Joined: Thu Jan 01, 1970 1:00 am


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 13 guests