Accessibility Id in ionic angular mobile application

In ionic angular mobile app, what attributes can be used in source code like ion-button so that it can be shown as accessibility id in appium inspector? Currently only anchor tag text like “Forgot Password?” shows accessibility id but no any particular attributes are assigned to it.

This blog post goes into how an ionic angular app can be modified to add code to help it be accessed by Appium. It also details the different search methods you can use, and provides full source for end to end testing. Hopefully it can help you: