How to handle when most of the objects have a dynamic Parent
The issue is that TC does not read them as xamarin XF objects but treat them as regular iOS objects which is treating them as windows with dyanamic index.The index of thsese window changes after each navigation. For example if I am on x window right now which TC is showing as window(1) and I navigate to some other area of application and then come back to same x window then index of window changes and TC reads window as window(10) this Please find screenshot attached to see details of it.
This Window object is available in all popups of entire app.
Aliases.Device.processQaA36020.Window(28).ScrollView().Button("", 0) ---button object
Aliases.Device.processQaA36020.Window(39).PickerView().TableView(0) ------TableView object
I can not Map these object because of this dynamic window object.I have tried clicking on 'Ok' 'Cancel' button using FindChild Method(by mentioning "Aliases.Device.processQaA36020" as parent)but it does not seem to be stable as at times it works and next it does not.So I cannot automate complex functioanlity availble in these poup using FindChild method . Also this approach does not seem to be reliable to automate 50-60% functionality of the app.
Can anyone please suggest a wayout for this problem.
You can also utilize "Extended Find" to bypass that Window entirely in your NameMapping.