Take Screenshot error

Hello,
I am using the Take Screenshot activity for my automation, when the Process runs in the VM if in case the VM is minimized, the Screenshot wont be captured. Is there a way when the VM is not in Foreground the BOT can capture the Screenshot?
Thanks in advance:)

Hi @Akshay_B

Take Screenshot activity will not work in the background. The element which you are capturing should be in the foreground. If it not visible then it will throw the Ui element doesn’t exist error.

Hope it helps!!

1 Like

@Akshay_B

1 Like

Hi @Akshay_B

When you use take screenshot activity in unattended mode don’t indicate screen in that activity, just simply drag and drop the activity wherever you want to use. It will take the screenshot of the entire screen present at that time.

See in my workflow I simply drag and drop the take screenshot activity and pass the variable in it in which it will save the screenshot image. It works fine without any error.

Thanks!

1 Like

Hello @sarvesh.b @rlgandu ,
Thanks for the Suggest and I completely agree , however I m taking the Screenshot by only indicating the Part of the screen which is required according according to the business requirement , I need to extract the text from this image. Hence I need to indicate the part of the Screen. Also, In my case as per the Business Requirement, I cannot use the OCR activities or get text , so I have to Capture the Screenshot and then pass it as a http request, so is there a way through which even if the VM is minimized, the screenshot can be captured?
Thanks

Hi,

The following document may help you.

Regards,