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(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: ...