Hello,
I am trying to take a screenshot of a webpage in Chrome and have it save to a local file path. The activity works attended, but this bot will be unattended. Does anyone have suggestions on how I can get this to work?
Hello,
I am trying to take a screenshot of a webpage in Chrome and have it save to a local file path. The activity works attended, but this bot will be unattended. Does anyone have suggestions on how I can get this to work?
Are you getting any issue in unattended?
Ideally It would work the same way in unattended as well
Cheers
Hi @Dammy,
Kindly check out “Take screenshot” activity
Take screenshot activity can work in both attended and unattended mode
It will work for sure even if you haven’t indicated any screen
In that case it just take the screenshot of the screen present at that moment
And have it as a img object
Cheers!
There is no error. It just doesn’t save the image unattended. However, it saves it attended.
I also tried the classic “take screenshot” it works attended, but not unattended.
Where are you checking it?
Are you checking in the folder where the process is presnet? I mean where the project folder is present?
If yea then you wint find it there…as you gave a relative path and when robot runs from orchestrator the relative pth changes …and that path would generally be C:\users\username\.nuget\packages\packagename\and then relativepath
If you want to have it saved in specific pth give th fullpath instead of relative…
Try something liek C:\botfolder\screenshot.png
…then you would find it easily in same place
Hope this helps
Cheers
I have tried different paths and none of them work unattended. However, they work attended. I have tried “C:\users\username.nuget\packages\packagename\screenshotfolder”. This does not work unattended.
Try logging the path where you save the screenshot, with a Log Message activity before the Take Screenshot activity. This would help you debug if it’s trying to save where you expect.
No it isn’t failing. It just doesn’t save anything. Yes, I hardcoded the path as well.
Well, I know it works because it saves attended. However, it does not save unattended to the same path. Also, i’ve logged the path and I can confirm that it is correct. It will not save unattended. I’ve even tried updating the packages.
Hi,
Drag and drop another ‘Take Screenshot’ activity. Simply provide the file name or file path; either do not capture an image for the screenshot, or keep the page open for the screenshot.
Thanks
I’m doing all that you mentioned. However, it is not working unattended.
I think my original message wasn’t clear, my apologies. My workflow works attended - it takes the screenshot and saves it. However, when I run the bot unattended, it does not save nor does it give an error. The bot will just end without an error or a screenshot.
you are giving a relative path…use fullpath
like c:\bofolder\screenshot.png
if when running from orchestrator the relative path will change
cheers
Hi Anil, I tried the relative path first. It does not work.
sorry, I meant to say I tried both. Neither absolute nor relative work. Perhaps, this is no longer possible to do unattended with UiPath anymore. The path makes no difference, it does not work rather if it’s absolute or relative, unattended.
Based, on both working attending. This tells us this has nothing to do with the path. This is related to the actual activity. If you have an example of this working unattended, can you please share a screenshot or the code?
in all of our bots we use screenshot activities and we do get them
It is weird that it does not work…if it atleast does not work it should throw an error
Can you tell the version of studio,packages etc
cheers