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.
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.
1. First, we will indicate the element we want to click on. In this case, it will be File menu in Notepad:
This results in the…
Dynamic Selectors In UiPath - Learn Robotic Process Automation.
Also, In the Latest Update of Uipath, You can always rightClick on the variable and Update it .
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,
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.
“<wnd app=‘bw.exe’ cls=‘AfcFrameOrView80u’ title='DMB [User: *][Company:”+YourArgumentHere+"[Model:001] … "
Please mark as solution if helped.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.