sazina
(Christian Dingwell)
October 26, 2019, 7:16pm
1
Hi
I have a badly identified selector that looks like this
This one ofcourse only works when notepad file is named ggg. So instead of hardcoded string ‘ggg’ I want to use a variable named ‘notepadName’
Can anyone please paste the correct selector as an answer for me?
hi @sazina
if you want dynamic name, just replace the entire title for an asterisk (*), and the selector will recognize any title. (thinks that’s your problem), or if you want to use the selector in a variable just use the assign activity.
Regards,
sazina
(Christian Dingwell)
October 27, 2019, 3:30am
6
Hi @fernando_zuluaga
The use of * can cause problems further on in the process so that’s not an option here.
I tried assigning a variable and I’ve red through the UiPath documentation I could find but it still doesn’t work.
So if anyone could just post the right answer here I would be very greatful.
Hi
Welcome to UiPath community
Kindly have a view on this that would help you in 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…
Cheers @sazina
3 Likes