Here’s the appproach i think that can help so fisrt in Find Children on the parent container apply filter "<webctrl tag='IMG' />" and set scope FIND_DESCENDANTS and output children
then loop with For Each then in Get Attribute on CurrentItem use attribute "src" or "srcset"/"data-src" and stor e output imgURL then in HTTP Request put URL as imgURL and destination as Path.Combine("C:\YourPath",Now.ToString("yyyyMMdd_HHmmss") + ".jpg").
hi, @gorby Try to Just remove the selector from your Get Attribute activity — only use the Element input from the loop. Also, make sure your Find Children filter is set to <webctrl tag='IMG' parentid='pngThumbnail' /> and scope is FIND_DESCENDANTS. That should grab all 12 images correctly.
Your idea worked well on a certain e-commerce site, but on this site that you also often use — https://forum.uipath.com/ — I wasn’t able to download the image on the right side of the TOP page(See picture below). Do you have any ideas?
Pls modify config.xlsx and Settings.xlsx before starting this project.
Similarly, I was not able to download the image on the right side of the UiPath Maestro top page. I would greatly appreciate your advice on this matter as well.
Hello @gorby I think the issue is in the e-commerce website the img selectors were different and the alignment also like in div tags and in forum the alignment like div tags is vertical and in Maestro there is only one image so no need of using Find Children you can extract the url and download the image.
You can try this
Use the Extract Data Table activity OR use Find Children activity on the div that contains the avatars then loop the cild elements and then use Get Attribute activity with "src" or "style" so it’ll gives you the image URL.
now use the HTTP Request activity and in the Endpoint field put the extracted image URL and in the Resource Path give a local file path to save the img.