Florian16
(Florian Gashi)
November 12, 2019, 9:44am
1
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:
HI
welcome to UiPath community
here you go with a thread on how to use variables in selector
This tutorial will teach you how to easily use variables in your selectors. In other words, we will be making dynamic selectors without the use of the old method of concatenating strings. How cool is that!
For the purpose of this tutorial, I will make 1 click in the Notepad app.
Feel free to also reference our documentation here .
Let’s begin!
1. First, we will indicate the element we want to click on. In this case, it will be File menu in Notepad:
[image]
This results in the…
if youu are using older version
then this method
Hi all,
To pass your variables or arguments to selector, DO NOT CLICK the “…” box to open the Selector Editor window. The Selector Editor window does not recognize your variables or arguments.
You need to edit the selector directly to the selector field in the property pane (Which is a Expression Editor). Try to Type the the step as follows:
"
SpaceBar
“+”
your variable or argument ( the drop down box will appear showing that the program is now recognize your V and A)
PS. After you edit sel…
Cheers @Florian16
Florian16
(Florian Gashi)
November 12, 2019, 10:08am
5
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 ?
Fine
which aaname value is your folder name
replace that with a variable
Cheers @Florian16
lakshman
(Ganta lakshman)
November 12, 2019, 10:10am
7
@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.
Florian16
(Florian Gashi)
November 12, 2019, 10:12am
8
@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.
Florian16
(Florian Gashi)
November 12, 2019, 10:15am
9
this is how it looks like
@Palaniyappan @lakshman
i have exactly the same issue and i have no clue what to do…
Hi,
I have exactly the same issu and I have no clue what to do!
sarathi125
(Parthasarathi)
November 12, 2019, 10:40am
12
@Florian16 ,
Why you want to click the folder, are you going to open it or change any property of that folder?
Florian16
(Florian Gashi)
November 12, 2019, 10:42am
13
@sarathi125
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
sarathi125
(Parthasarathi)
November 12, 2019, 10:44am
15
@Florian16 , Which property of the folder you want to change
Florian16
(Florian Gashi)
November 12, 2019, 11:02am
16
@sarathi125 @Palaniyappan
I want to change the rights in the security properties
Florian16
(Florian Gashi)
November 12, 2019, 11:28am
17
the other Problem is, that there is no shortcut to open properties