I am using a desktop application and I want to get all the items from a dropdown list

I am trying to automate a desktop application and need to retrieve all the items from a dropdown menu. I’ve tried almost all the solutions available, which suggest using the ‘Find Children’ activity. I used this method, but my list still ends up empty. It seems that reading items from a dropdown in a desktop application might require a different approach. Can someone help me solve this issue?

1 Like

@pd2897
Welcome to community!!

Use get attribute activity and select items it will give you all the values

1 Like

Hi @pd2897

—Select Item – Directly retrieves dropdown items.
----Find Children – Extracts child elements (may not work for all apps).
—Send Hotkeys – Use Arrow Down + Ctrl+C to copy items.

Try above method, if you found helpful mark as solution.

1 Like

@pd2897 use get attribute activity

i have used “DropDown Menu - GlobalSQA” site for demo

items is a list of item

1 Like

@pd2897

Hope you got solution by using get attribute activity

1 Like

@pd2897,

Welcome to the Community!
Can you share the selectors of the dropdown so we can decide how to get the dropdowns. Configuring Find Children requires some try-test to get the right output.

1 Like

@pd2897

Welcome to the community

As it is desktop application get attribute or find children might not work

You need to click the dropdown then indicate the expanded menu and use get text with fulltext option so that all the text is retrieved…but bear in mind all the values would come as string so you might beed to split later

Cheers

2 Likes

Hi dropdown as the target then I got this error

Get Attribute ‘…’: Value does not fall within the expected range.

Hi I selected dropdown as you showed but I got Get Attribute ‘…’: Value does not fall within the expected range. error message

Hi, as I am new to UiPath Studio, I am not very familiar with the terms, How can I get the selector? Is it possible to find it from the Properties tab of the activity?

Then try below sterps,

  • Use click activity to click on dropdown
  • Then use get text activity and in properties select Full text option. and store it in one varibale
  • try to look out variable output whether you are able to get all options from the drop down or not.
  • if output as expected then it will be in string format try to change it as list to do this use split function to make list of items if you want
1 Like

@pd2897 I think items attribute is not present. Can you check other attributes if they contains dropdown items.

or

you can use click activity to expand dropdown and then extract the items

1 Like

Hi I followed your steps,

1.Used ‘Click’ activity and clicked on dropdown button
2. Then used ‘get text’ activity and selected the target as the one of the items in dropdown
3. then from property tab selected fulltext option.
4. added log message to see output. in there only selected value is logged. not the all the items in drop down

did I do anything wrong ?

What should be the target in get text activity ? one of the random items from dropdown ?

Hi I followed your steps,

1.Used ‘Click’ activity and clicked on dropdown button
2. Then used ‘get text’ activity and selected the target as the one of the items in dropdown
3. then from property tab selected fulltext option.
4. added log message to see output. in there only selected value is logged. not the all the items in drop down

did I do anything wrong ?

1 Like

when you clicked on drop down it will open all items right? just mouse over it will highlight those that particular portion then you can click on Confirm…

2 Likes

Thank you so much this worked

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.