Has anyone here created a workflow snippet that takes a screenshot of the unattended robot’s screen when an error/exception occurs? I’m trying to create something that I can plug into the Catch block of a Try-Catch activity. This would help troubleshoot errors that occur in the workflow since I can see the errors that the unattended robot encounters.
In the Config file, constants tab → it defined where to save the exception screenshots.
And the framework folder contains the Exceptions_Screenshots folder where all the screenshots will be saved.
.Screenshots folder will save the screenshots when you indicate on screen (representation purpose) for some activities. Those are not the screenshots taken when the exception occurs.
I am trying to find an exception screenshot in UAT/prod VM. Do you have any idea where it is saved?
For local, it saves it in the folder itself in the exception_screenshot folder but for UAT/prod where we only deploy the package and run the job from Orchestrator. Where can we see the screenshots in VM??