How to modify selector to click on a specific folder?

Hi all,

i have a problem…

Does anyone know, how it’s possible to insert a variable in the selector to click on a specific folder?
My bot takes a variable from an Excel sheet and creates a folder, where I have to change the rights.

For Example: my bot is saving “01. VG” into a variable, creates the Folder and then has to right click on it.
This has to be done for all values in the Excel sheet.

I hope anyone can help me.

Thank you very much in advance!

I have this Selector:

welcome to uipath community
here you go with a thread on how to use variables in selector

if youu are using older version
then this method

Cheers @Florian16

Hi @Palaniyappan

I already saw this, but it’s not helping me in my situation.

I have this Selector:
wnd app=‘explorer.exe’ cls=‘CabinetWClass’ title=‘Ordnerstruktur’ />
wnd cls=‘ShellTabWindowClass’ title=‘Ordnerstruktur’ />
wnd aaname=‘Explorer-Fenster’ cls=‘DirectUIHWND’ />
wnd aaname=‘Shellordneransicht’ cls=‘SHELLDLL_DefView’ title=‘ShellView’ />
wnd aaname=‘Elementansicht’ cls=‘DirectUIHWND’ />
ctrl name=‘Elementansicht’ role=‘list’ />
ctrl automationid=‘0’ />
ctrl automationid=‘System.ItemNameDisplay’ />

where do I have to put in the variable that it will click on the specific folder ?


which aaname value is your folder name
replace that with a variable
Cheers @Florian16


If you click any folder then you may find that folder name into any attribute value in the selector. If you found that then you have to replace that value with variable to dynamically click any folder based on that value you passed into it.

@Palaniyappan this is the issue I’m facing - none of them.

The folder Name is: “01. VG”. i tried to insert a variable for all “wnd aaname” but still he can’t find the folder i want to click on it.

this is how it looks like

@Palaniyappan @lakshman

i have exactly the same issue and i have no clue what to do…


I have exactly the same issu and I have no clue what to do!


Why you want to click the folder, are you going to open it or change any property of that folder?


I want to open the properties, to changes the rights for the folder.

may i know what you would like do on clicking on that folder
are we trying to access any file
Cheers @Florian16

@Florian16, Which property of the folder you want to change

@sarathi125 @Palaniyappan

I want to change the rights in the security properties

the other Problem is, that there is no shortcut to open properties