Problems with Dynamic Click


Hi, I am automating a web page that contains a table with multiple rows. Each row represents a document type (e.g., “Documento Aduanero”, “Selección de Aforo”, etc.), and each one has an icon (image) to download a PDF.

In my workflow, I’m using a “For Each Row” activity and a variable called tipoDoc, which dynamically holds the value of each document type. The goal is to click on the corresponding PDF icon only in the row that contains that specific tipoDoc.

However, even though the tipoDoc value changes correctly (verified through a Log Message), the click only works on the first row or fails to validate in UiPath Studio for other rows.

Hi @Diego_Medina,

For your target, I see it’s a table element. In your target selector, you can add tablerow property which will correspond to the row index to help select the icon from different rows.

Try with strictly selector approach and there the attribute which contains document name or row number
There you can pass variable @Diego_Medina

Hi! I tried using a Strict Selector on the anchor and just added aaname while removing tableRow, and it worked! Thanks!

1 Like

Thank you for the confirmation
Happy automation !

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.