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, and IosUIAutomation

Finding ...

Get Appium Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.