Before your retrieve activity , create string variable and define like below.
Consider your Enum attribute is Result which has values Pass & Fail.
The above attribute is in Student entity.
Add the below condition in your Create Variable activity and select data type as String
Now you have converted the Enum to String, Create one string variable in student entity itself for storing this enum converted to string value.
Use change object activity for updating student entity string attribute with your enumconvertedtostring value.
After this, you can use your string in your entity in contains function in xpath.
In this way you can convert Enum to String and use it in xpath contains function
In the Xpath type
then press Ctrl-Space
then press arrow up
Now you can select from the list of your enumeration’s values.
If you know the exact enumeration-value that you want to use, then you can also just type it out directly, [YourAttributename=’yourvalue’]. A a typo is easily made, but StudioPro will give an error if the ‘yourvalue’ does not exactly match any of the enumeration’s keys.
Thank you for your question. I fully agree with Tim's answer.
In the screenshots below, you can see how to do it in Studio Pro.
We want to display all cars with a red color
Find all Cars with the Color Red
I am borrowing the steps described in Tim van Steenbergen's post for this. (Thanks Tim 😉)
Data source XPath
I hope my answer will help you 😊