12個のうち最初の1個しかダウンロードできません。

こんにちは
UiPath Studio 2025.0.176STS Community editionのユーザーです。

1.やりたいこと

「子要素を探す(Find Children)」アクティビティを使って、指定Webページの画像をすべて12個ダウンロードしたい。
※ワークフローを画像でUpしました。
※指定WebページはAmazonではありません。

2.悩んでいること

12個のうち最初の1個しかダウンロードできません。
最初、Find Childrenアクティビティの「画面上で指定」の指定範囲がおかしいのではと考えましたが、
Webページ全体を指定しても結果は同じだったので、今は「属性を取得」アクティビティのセレクタ設定がおかしいのではと疑っています。
「属性を取得」アクティビティのセレクタ設定をUpしますので、気になる点があればご教示ください。
他のご指摘でも構いません。

ダウンロードしたい画像は下記の12枚です。

Namaste @gorby

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").

Cheers

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.

Hi, devout Hindu @bhavesh.choubey ,

To specify the parent container, should I simply select the entire web page that contains 12 images with the mouse?

May Lord Saraswati bless you.

Select the common parent container that directly holds all 12 images not the whole page and not a single image.

Kami-sama, bless you

1 Like

Thank you! modern Birbal, @bhavesh.choubey

I could make the workflow :grinning_face:

Shukriya :wink:

1 Like

Hi,modern Birbal, @bhavesh.choubey

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.

I will hold off on the solution for now.

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.

UiPath "

@gorby I’m unable to understant the flow as it in in Japanese also my Liscense has been expired so I can’t execute the flow.

But I’ll try to provide you solution here. Hope you understand.

Thanks

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.

Cheers