nm09011985
(Nilesh Mahajan)
January 29, 2020, 7:06am
1
I want to use the Argument into Selector to activate the application as per Argument value.
In Below screenshot I want to activate the application as per company code which is stored in Argument. 868 is my code where i need to use Argument.
FileName is my Argument
This Company code will always change as per request.
ppr
(Peter Preuss)
January 29, 2020, 7:07am
2
@nm09011985
have a look here:
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…
1 Like
mukeshkala
(Mukesh Kala)
January 29, 2020, 7:35am
3
@nm09011985 ,
https://dotnetbasic.com/2019/07/dynamic-selectors-in-uipath.html .
Also, In the Latest Update of Uipath, You can always rightClick on the variable and Update it .
–
Mukesh
Hi @nm09011985 ,
First of all you have to assign a variable whose value will be that argument .
Now, please erase the portion of the selector, which you want to make a dynamic one. Then press and hold the ‘ctrl’ key and press ‘space’ key . Now you will find all the variable available in that particular scope. Select your assigned variable for that field.
Now you are all set to go.
Thanks & Regards,
Apurba
1 Like
Alko
(Aleksander Pleń)
January 29, 2020, 8:16am
6
HI @nm09011985 ,
Assign code to Argument
Go to activity which You want to use, select selctor, copy it and delete from properties.
Press “…” to open
Inside Expression Editor Open " " and pass selector between. Everything need to be in one line.
Edit selector
“<wnd app=‘bw.exe’ cls=‘AfcFrameOrView80u’ title='DMB [User: *][Company:”+YourArgumentHere+"[Model:001] … "
Click ‘ok’
Please mark as solution if helped.
Regards,
A
1 Like
system
(system)
Closed
February 1, 2020, 8:16am
7
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.