I’m new to UI.Vision and this is my first RPA macro. I have, as the topic says, the captureDesktopScreenshot step and it works perfectly when debugging (step or run macro from the UI), but fails when I have the macro scheduled and furthermore, I’m not finding the logs from the macro anywhere to check what was the issue.
This is the part that fails (last one)
{
“Command”: “storeEval”,
“Target”: “var d=new Date(); d.getDate()+’-’+((d.getMonth()+1))+’-’+d.getFullYear();”,
“Value”: “Date”
},
{
“Command”: “storeEval”,
“Target”: “(new Date().getHours()+” " + new Date().getMinutes() + " " + new Date().getSeconds()) ",
“Value”: “Time”
},
{
“Command”: “store”,
“Target”: “screen-{Date}-{Time}.png”,
“Value”: “Screen”
},
{
“Command”: “captureDesktopScreenshot”,
“Target”: “c:/temp/kuva_${Time}.png”,
“Value”: “”
},
{
“Command”: “pause”,
“Target”: “2000”,
“Value”: “”
},
Many thanks Ulrich! I have Windows virtual machine to run RPA. I will try the screenshot when unlocked.
One thing that still puzzles me, where I need the logs, is that I find the Firefox browser hanged in processed after the script has executed. I don’t see it happening when manually launch, only when executed by task sceduler. Because of that, I need to have another task scheduled, which kills that firefox process just before the RPA script starts. Do you have experience what are the typical reasons causing the browser hang?