TouchAction

Appium implements the new TouchAction API, which allows chaining touch events and, thereby, facilitates gesture implementation. Touch Action is pretty robust and supports a multitude of gestures, which ease the simulation:

We will discuss some of the methods mentioned earlier, that TouchAction supports:

  • press:
    • press(WebElement el): This method allows you to press on the center of the element
    • press(int x, int y): This method allows you to press on an absolute position (x and y coordinates)
    • press(WebElement el, int x, int y): This method allows you to press on an element offset from the upper-left corner by a number of pixels: ...

Get Mobile Test Automation with Appium 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.