Using a For Each UI Element activity in a For Each UI Element activity

hi, I have a website with a table that looks like this:

I am using a For Each UI Element to loop through the category names (coloured grey), then I am trying to use another For Each UI Element activity to loop through the files in the inner table do download those files. However, I am having trouble using a For Each UI Element in the inner loop as it only detects the files from the first category even when it goes to the second category. How can I troubleshoot this? I tried using the Find Children for the inner table with the files but it doesn’t work as the web page is structured such that the grey Div and the Div below are on the same indentation level, so the inner table is technically not a child of the category grey div.

@ttk,

Use Extract Table activity which will give you file links also in a column. You can iterate through the DataTable and download the file using Activities - Download file from URL

Thanks,
Ashok :slight_smile:

Hi, this means that the Extract Table Data activity will be inside the For Each UI Element when I am getting the category headers right? If that’s the case, how do I get UiPath to recognise that I want to extract the tables under each category when I am looping through the categories? Currently it only detects the first table under the first category and does not move down when I loop through the other categories.