I have to select an value from the drop down, and i am using select item activity to do that operation (desktop application automation).
But here is the problem:
The value to be selected is given through a variable as it is dynamic.
MyDropdownVar=a
so i have to select a from dropdown.
The dropdown values are : abc b c
But this operation will select abc .
I just want to see if the MyDropdownVar is present in dropdown, if its there select it, else throw BE.
If the value is not present in the dropdown then business exception is thrown.
Are you perhaps using a wildcard * after the dynamic variable? That would cause the abc to be chosen. If not, it could be an issue with interaction between UiPath and target application. You could in that case try to do it with 2 clicks instead: 1st to open the dropdown and 2nd to click on the element you want to choose.
To do this you could use the “Find Children” activity. Point it to the dropdown and configure the filter to get just the dropdown items (use UiExplorer for help to get proper tags for the filter).
Yes, i am using wildcard to fill up the extra spaces,
The reason for that is the dropdown values are
The dropdown values contain spaces , but the values i get from excel doesn’t have spaces abc
**b **
**c **
A benefit is also that we can filter on the find children output with custom conditions (e.g. toupper, handling spaces…) but can still refert to the acutall value.