Reading dropdown values in Windows Application

Hi all,

I’m having issues reading some values from a dropdown.

I tried get text UiAutomation and classic Automation Activities but output was null or wrong. I also tried find children elements but it is not working. And with CV I’m unable to correctly identify the object so it fails as well.

Anyone has any suggestions?

Screenshot 2024-07-30 at 5.05.45 p.m.

You wouldn’t use CV, that’s for things like Citrix/RDP where you can’t get regular selectors.

Did you set it to FIND_DESCENDANTS? It’s not the default so you have to set it manually. Indicate the pulldown as the primary element. For a web page you’d use a filter of <webctrl tag='OPTION' /> to get the options from the pulldown but since this is an app, you’ll have to explore in UI Explorer to see what “tag” it’s using for them.

I did set it to find descendants, the output was empty

So it seems the application dropdown is not set in a standard way since the option values are nowhere to be found (as dropdown child elements) in the UI explorer

It may be that the options don’t load until you click the pulldown so it expands. Try clicking it first, then looking at it in UI Explorer.

HI,

Did you try other scraping method such as Native etc?

We can easily check it using PreviewExtraction of GetText activity. Can you try this, If you didn’t try it yet?

image

Regards,

@Eric_Arias

First try to use a recorder andrecord the step of typing and then clicking on the dropdown element

From there you can get the selector of the dropdown element

Then we can think of making it dynamic as needed

Cheers

@Eric_Arias ,

Did you try with select item activity??
You can give a try with that using modern activity

Hi @Eric_Arias

Please try below activity inside Use Browser activity , and try to check if you are getting the needed output

Hope it helps

That is how I tried but options values are nowhere as children in Ui Explorer

I only get current value, I need to extract all option values

Thanks for the reply, For Each UI Element activity is restricted to browser and I’m automating windows application

Hi @naveen.s , the issue is not selecting the item, the issue is I need to read all dropdown option values to know which one to select. The values are dynamic and will always be different, the values are also composed by date+description, RPA knows the date but not the description and since same date can appear multiple times I need to read all option values

Hi @Eric_Arias

After click on dropdown can try with Extract DataTable activity to extract all values

Regards,

Thanks for the support to everyone,

I find a way to do it by opening the dropdown and taking a screenshot of the options box, then processing the image with UiPath OCR.

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