How can I Clear output?

Is it possible to clear the output lines?

I execute a robot all the day and in each execution I write lines to know the sequence that the robots had and in case to crash detecting where it was.

However, I would like to know if It is possible to clear the lines in the output. The rebot has a delay between each execution, as soon as delay finishes I want to clear output

Did you try this?

1 Like

By code or by an activity?

1 Like

oh ok. I’m not exactly sure, may be you can try Invoke Method and call Console.Clear() during your delay ?? (may be something else in Uipath)

Give it a shot, else wait for someone to respond.

2 Likes

thanks for your help

I am not familiar with the Invoke Method. Which target type must be selected? I have tried the most common ones without success.

Console.Clear() doesn’t work because the Output panel isn’t a real console window. Why not use a Click activity instead? The Clear All button has a pretty good selector and it works with SimulateClick.

When I select the button, I get an error message. I think it is the security mechanism that prevents the UiPath Studio from being controlled by the robot.

image

I have tested the click on my computer and it’s working fine. How does your selector look like?

ClearAllOutput

Hello @Kytyzow

Suggesting to write the data to a text file or log file for your tracking using uipath activity, instead of automating uipath studio.