I'm trying to use the AutomationId bindable property in Xamarin Forms to work better with Tosca Automation. I have a ListView, and lets say I populate it with a list of objects of type "Test", called TestList. I would essentially like to set the AutomationId to "Test-{TestList.indexOf(testObject)}".
I've tried binding it to an incremented ID, but that doesn't help if there are two ListViews on one screen. There would be no way to uniquely identify one list from another. I need to have the object type + unique ID.
If I populate the list with 3 "Test" objects, the end result would set the ContentDescriptions to: Test0, Test1, Test2
Does anyone know if there is an "industry standard" or easy, maintainable way of doing this?