How to add variables in selector

Hello,

How to add variable in selector.
i want to click on element on webpage and that elements exact name is in excel.
so i am using each row en excel activity and trying to use {{currentrow(“column name”)}} like this way in selector but not helping.

please guide me on same.
check below screenshots


aaname i need to replcae with currentrow(“columnname”)

how can i achieve this
i am getting error if i replace thsi to variable

hi, @Mathkar_kunal

To add a variable in a UiPath selector, right-click the attribute value (like aaname ) in the Selector Editor and choose “Create variable” then set it to your workflow variable before use. Assign the value from Excel to this variable (e.g., elementNameVar = CurrentRow("ColumnName").ToString ), and the selector will use it dynamically at runtime.
Avoid direct expressions inside the selector

1 Like

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