Hi everyone, I am working on a UiPath automation where I need to download files by clicking the link found in the File Name column of a web table. The File Name values are clickable links that trigger a file download when selected. The table spans multiple pages and contains dynamic data, so I need to loop through each row and click specific files, such as those that meet certain conditions (for example, based on generation date or where the Downloaded column is marked as “No”). I have considered using Extract Table Data followed by a For Each Row activity with a Click, as well as options like Anchor Base, Find Children, or dynamically handling selectors for the <a> tag. I am also wondering if capturing the download URL and using an HTTP Request would be a better approach. Could anyone suggest the most stable UiPath activities or best practices for clicking or downloading links from a table like this, including how to handle pagination efficiently?
Hi, @fsgmacalino,
use extract table data filter rows like downloaded = No then loop and use HTTP Request with the file URL.
loop rows and use a dynamic selector for the "<“a>” tag based on row index or file name you can also use Find childrenif selectors are tricky.
Hi @fsgmacalino,
You can handle this scenario using the below approach:
- First, get the current page and ensure it starts from Page 1.
- Extract the table data and apply a filter (e.g., Downloaded = ‘No’).
- Loop through each row and click the link using the Filename column value.
- Wait for the file to download before moving to the next item.
Once all records on the current page are processed:
- Navigate to the next page and verify that the page has changed (to avoid staying on the previous page).
- Repeat the same steps for extraction and download.
Continue this process until the pagination indicates the last page (e.g., Page 192 / 192).
Thanks
