You can go to the next level and search for an array of values for an object type. We have to work with Android Native apps and there are multiple text strings for the same screen depending upon manufacturer and carrier. We changed our method to search for a group of items then return the item found or nil.
Perhaps I've misunderstood your description, but if you can't predict what type of element and associated value should be present, I don't understand how you hope to automate your tests.