I have defined a page with TabbedPage and I have given AutomationId for each Tab to identify while testing, but app.Tap("") doesn't work on it.
how this can be resolved? Please help
I am not really sure what you're trying to do but I think it's something similar like I have done. My guess is you're trying to create dynamic tabs, right? In that case:
Inside your Android project you've probably created a .xml file for your tabbar which contains: android:id="@+id/your_tab".
To navigate to a tab page you can use this id in your unit test file. Because the tabs are(most likely) in 1 'group' it will always open the same tab and you're not able to select one of your own choice. You can use the following to do so:app.Tap(c => c.Marked("your_tab"));. This means if you're using(in my case) 3 tabs it will always open the second/middle tab.
app.Tap(c => c.Marked("your_tab"));
To fix the above this I used a simple workaround by using app.SwipeRightToLeft() or any other of the available gesture recognizers to navigate between the pages.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies