Selected Item

Hi, everyone!!! Can anybody help? When I select an item by using activity Selected Item it shows me error like

Message: Cannot select item.It was not found among existing items.
TIP: Some combo-boxes delay load items until its dropdown is expanded. Try to simulate a click on control prior to selecting an item.

How can I solve such problems?

@r_Talant

When you Select Item activity, the value which you are passing should exactly match with the items available in the drop-down

OR If you have half value and need to match then you can use Get Attributes activity and mention “items”-> from the output variable you can use contains function as below

outputVariable(0).tostring.Contains(“your string”)

Mark as solution if this helps

Thanks

Unfortunately it doesn’t work. I do not have any functions in my uipath as below:
outputVariable(0).tostring.Contains(“your string”)

For information: the value which I want to select in selected items I get from pdf-file
1)Read whole text from file
2)Using regular expression to get value which I want pass.
3)Use trim to delete any space if they have in value which I get
The text and item exactly match. But I still do not understand why there is error