Finding and interacting with elements
Appium supports a subset of the WebDriver locator strategies:
- find by "tag name" (i.e., ui component type)
- find by "name" (i.e., the text, label, or developer-generated ID a.k.a 'accessibilityIdentifier' of an element)
NOTE: the "name" locator strategy will be deprecated on mobile devices, and will not be a part of Appium v1.0
- find by "xpath" (i.e., an abstract representation of a path to an element, with certain constraints)
↙↙↙阅读原文可查看相关链接,并与作者交流