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
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.
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
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.