Chapter 7. Advanced User Interactions

In the preceding chapters, we covered a lot of things that are quite straightforward with Appium. In this chapter, we will take a look at mobile gestures, such as long press, zoom, and swipe.

In this chapter, we will learn about the following topics:

  • The advanced user interactions API
  • Mobile gestures, such as long press, drag and drop, so on
  • Handling alerts, spinners (dropdowns), the switch button, and the slide seekBar.
  • Capturing screenshots
  • Capturing screenshots on test failure

Exploring advanced user interactions

In Appium, the advanced user interactions API allows you to perform complex mobile gestures, such as drag and drop, swipe, and zoom by using the TouchAction and MultiTouchAction classes. It simply builds ...

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.