Chapter 4. Finding Elements with Different Locators
Appium has different locators to find elements on the mobile apps that can be used while testing. In this chapter, we will discuss some techniques to find an element for native and hybrid apps using the uiautomator and Appium inspector. To find an element for web-based applications, we will see a Chrome add-on to remotely inspect the web elements.
In this chapter, we will learn the following topics:
- Finding elements using the Chrome ADB plugin
- Finding elements using the Safari Develop option
- Finding elements using UIAutomatorviewer and Appium Inspector
- Finding elements on mobile apps by
id
,Name
,LinkText
,Xpath
,cssSelector
,ClassName
,AccessibilityId
,AndroidUIAutomator
, andIosUIAutomation