How to select the particular item from the drop down list with code

i have drop down list where thers is list like

ABC456
BCD2345
UYHT5678
here when iam tying the letter it is able to select the required output but when iam searching with code 456 it is not getting selected.

actually i have the input in code which i have to search in the select item

just start with selector * and then with the code

  • is not working here

Hi @T_Y_Raju

By using the Select item it will not work, then we have to use the click activity.

Follow the below process,
→ Take an assign activity and create a variable called code and set the value to it.

- Assign -> Code = "456"

→ Take a click activity and indicate the dropdown to drop the options.
→ Take for each Ui element activity and indicate the options in the dropdown.
→ There is configure filter option in for each Ui element activity and pass the Code value into it and select contains option as below, Output is CurrentElement.


→ Inside for each insert the click activity and pass the CurrentElement to the Input Element option in the properties of click activity.

Hope it helps!!

@T_Y_Raju

Use Get attribute Activity to get the dropdown data.Select the property which extracts you data clearly like “Aaname”

A well-proven approach for such a scenario is:

  • find children for getting all options
  • evaluating all found options and filter for that one containing the code
  • using the found child / or text for selecting the item

For an experiment also try to select "*456", but we would recommend less at the side-effects are not reliable controllable

select the item which contains particular code …
use .contains

for each UIelement is this activity available

If you are using UiPath Studio and modern design experience then the for each Ui element activity is available in the activities panel… @T_Y_Raju

iam not using Morden design

did u tried using find children activity

i have never used find children any example on this u have

Main.xaml (65.5 KB)
Here is the xaml where i have used find childrens u can refer to it and compare it with your requirement ;
For ex:Using find children u will get the output which is there in your dropdown

use for each item in dropdown if currentItem.contains(“the code value”) then select item

Okay @T_Y_Raju

Then use the Find children activity.

Check the below workflow,
→ Take a assign activity to store the code.

- Assign -> Code = "456"

→ Take a click activity and indicate on the dropdown to drop the options.
→ Then use the Find Children Activity, indicate the options in the dropdown. Output - UIelements
→ After that take for each activity to iterate the each Ui element in UIelements variable which is the output of Find Children activity.
→ Inside for each insert the If condition to check the condition.

- Assign -> CurrentItem.Contains(Code.toString)

→ Inside If condition insert the click activity and pass the currentItem in the Element option in the properties.

Hope you understand!!