I have to write test cases for Native iOS app which has a business rules that adds new elements on fly.
I need to write test cases for the elements for those dynamic elements.
What is the best way for finding element in this case?
Also the elements which are always visible but because of top element's xpath index will be changing. How to find elements for those elements?
Note: Most of the elements are populated value from web service call and binding. So, element name, label and value will keep changing bases on inputs.
I am writing test cases in appium java client and IOSDriver.