Passing a variable to selector

Hi,


I want to store the string in a variable and I want to pass it to the selector in find element activity. So that if I use anchor base I can click the preceding element.
I want to know how to pass the variable to the attribute in the selector.

Thanks,
Surya

you can make a selector like this
“<html app=‘chrome.exe’ title=‘Passing a variable to selector - RPA Dev Rookies - UiPath Commun*’ /><webctrl aaname=’"+cap+"’ parentid=‘post_1’ tag=‘IMG’ />”

1 Like

Check the updated docs on Dynamic Selectors: https://docs.uipath.com/studio/v2019/docs/dynamic-selectors

3 Likes