I’m unable to select a string from the dropdown menu when there is a space in string.
Suppose I want to select a country “French Polynesia” and I’m taking this data from excel. The problem is that Select item activity is selecting “French Guiana” not “French Polynesia”.
And it is working fine when I’m putting * (asterisk sign) between the two string eg.: French*Polynesia but I don’t want to use this way.
@ppr
Saw your answer.
You have hardcoded the value “Andean”, In my case, I’m taking the value from excel. Can you tell me how do I mention row.item(“Country”).ToString in below mentioned assign activity or do I have to mention in different Assign activity?
Filterstatement used within assign activity:
uiLists.Where(Function (x) x.Get(“innertext”).ToString.StartsWith(“Andean”)).First
In the log, the FilteredOption is showing the correct value but Dropdown is not selecting anything. It is throwing below error. Even tried putting Click activity before Select activity, still the same error.
I tried Debugging, still not working. It is throwing same error when it comes on Select activity. Even the delay before select activity is not working.
I’m able to identify the element and even in log I can see the correct result, it is just not selecting the option. Nothing happens on dropdown and it throws "Cannot select item. It was not found among existing items.
It is working if I’m replacing the space between the string with * wildcard.
@RohitK
can you share some more details on the element structure of the combo box. Some boxes are a conglomerato of Ul/li, input textfield, selct/options for implementing auto suggest features. We encountered that such boxes are reacting different but were also automateable.