how to get Accessibilityid can be obtained by uiautomatorviewer or Appium Inspector . Accessibility ID on Android is equivalent to ContentDescription, this property is convenient for some of the physiological functions of the people who have a flaw in the use of the application. For example, we have a imageview inside to put a color complex picture, perhaps some blindness colour-blind people, can not tell the picture of what is painted. If a user installs a secondary Browse tool such as talkback,talkback, it will read aloud what the user is currently browsing. TextView control talkback can read the contents directly, but ImageView talkback can only read the value of ContentDescription, tell the user what this picture is. Example
Locate the code as follows:
driver.find_element_by_accessibility_id ('Touch Paint')
"Appium" locates elements according to accessibility_id