How to select each Array of Strings and get their values from dropdown items

Hi Ui Path,

I have a extracted data(data is dropdown) derived from a website and I have stored them in Array of Strings since the data is Alpha Numeric i have used(Environment.NewLine.ToCharArray), now i want to go through each Array of Strings item and get their values from website dropdown, below are the details:

dt
2021-01D Cat01
2020-02x Horse03
2022-03A Dog02

Note: the dropdown get changes every time.
Not sure if i am doing it in correct way, any help!

Thank you for your guidance.
Mirza

Hi @Mirza_Hussain

Have a look on the thread

Regards
Gokul

1 Like

maybe some more details on the case are needed

in general:

  • Use find children and retrieve the values from the dropdown

the part, get their values is unclear

But we can consolidate the values from array and the retrieved dropdown items. So we can calculate present, nonpresent or close/similar (uppercase, parts of string) items between both

Hi Peter,

The Dropdown items are below:
dt
2021-01D Cat01
2020-02x Horse03
2022-03A Dog02

i need to select each of them and get their values, we would get values when we select one , for example

Item : 2021-01D Cat01, its values are Age : 6 , Weight : 10 , Color : White
Item : 2020-02x Horse03, its values are Age : 10 , Weight : 30 , Color : Black
Item : 2022-03A Dog02, its values are Age : 4, Weight : 20, Color : Brown.

Thank you,
Mirza

can you share a screenshot due there are some parts within the description which can be interpreted in different directions

as far we have understood:

  • retrieve all drop down values
  • loop with a for each activity over the items
    • fetch the values

Hi Peter,

Unfortunately i cannot share a screenshot, however below steps can help me to automate the process if you could show me with detailed step by step example:

  • retrieve all drop down values
  • loop with a for each activity over the items
    • fetch the values

Thank you,

unclear, what was done, how it was done and if it is solving the step:

Doing it with find children:

Step Looping:

it is just using the for each activity and is iterating over the fetched values

Step: Extraction

as mentioned this part is unclear as our question is also not full answered. When it is about taking values then activities like get text … can be used

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