Using a dynamic selector in a dropdown (2.7 KB)
project.json (725 Bytes)
I have tried and tried to get the selector working for a dropdown in assignment 2, but UiPath just won’t recognise it!!

It’s probably something really simple, but I’m really struggling at the moment so any help would be greatly appreciated.

In the project attached, it concerns ‘System1_UploadYearlyReport.xaml’.

Many thanks,

Project attached (2.0 MB)

Hey Thomas , in your ‘System1_UploadYearlyReport.xaml’ - include the activity of defining selector in an attach browser activity…this will work

  • attach browser
  • inside do activity would be your “select year” drop down

and selector should be - “”

Hi @armamidwar,
This still doesn’t work. Either UiPath can’t find the selector or it returns an error regarding the UiNode …
Please see the attached screenshot

Any ideas?


In the uiexplorer if you can see there is a tree to the left top corner of explorer from there if you can try to get the selector with select as attribute in it then you pass that selector in select activity and this should work.

Let us know f this helps,
Pavan H


Use UiExplorer for the better UI Selector, make sure your selector is unique. Like take aaname as a selector if it is fixed like a label text. or you can use ID also.


Thanks for your input @pavanh003 & @jagbir.saini.
I have used Ui Explorer before posting to the forum with no luck.
I’ve tried using both selectors in the screenshot but UiPath still can’t recognise the element!

Hi Thomas,

try converting it to string

Hi @Gouda_6,

the argument in_year is already a string…

Try using below selector



Try to get the selector where you can see the month in the selector, for example as january and then create a array of string with all 12 months and using for each loop try to pass the month in selector variable and download the report accordingly.

I remember even I did the similar way to download the report while doing for downloading the report in ACME site.
This should resolve the issue.
Pavan H

Hi @pavanh003,

I did that for the month field already and it works fine. I copied the exact same steps for selecting the year (and changed the variables etc) but UiPath still can’t find the element

Please follow this selector to select the year to download the monthly report in the select activity:


Pavan H

Hi @pavanh003,

Indeed this is what I used as my selector (screenshot above) but no luck…

Alternatively can you try with click on that element and if for 2019 send hot key 2 times down or for 2018, 3 times down and send enter as hot key and try this.

Pavan H

Hye Thomas, instead of passing the selector to a variable , try passing the entire selector string directly in select item

Hi @thomasderwin

Can you try this selector… it worked for me when I was doing it.

"<webctrl aaname='"+in_Year.ToString+"' parentid='searchForm' tag='A' />"

In_year variable holds the year number.

let know whether it works for you…

I finally got it to work!
I needed to use the select item activity with the selector as below:

Thanks everyone for your input :slight_smile: