How to capture and extract images

I would like to capture or extract an image from a web page and save it as an image file. Is there a way?

Hi,

First get src attribute of the image (img tag) using GetAttribute activity.
Then, get the image using HTTP Request in WebAPI pacakge etc.

If there are many images in a table (for example) and you need to get them, table extraction or ForEachUiElement will help you.

Regards,

Hi @Benimaru ,

Once the web page which you want a screen grab of

Step 1 : Use Take screen shot activity, where you can indicate the particular part of the screen and edit the selector to make it dynamically or if you want to take the snap of entire screen you can have this activity without indicating as well.

The output of this activity will be an image object.
Eg: SnapImgObj (created Variable)

Step 2 : Use a Save Image activity , supply the SnapImgObj(output variable created in the previous step) and provide the full path where you want the screen shot to be saved with extension ( eg: c:/users/pictures/UiPathScreenshots/SampleScreenshot.png)

Hope this helps you out.!

Happy automating.!!

Please mark this as a solution if his reply helps you out.

If you have difficulties in the above method let me know, always happy to help out.

Thanks,
Gautham.