Files
appium/docs/touch-actions.md
T
2013-06-29 17:29:31 -03:00

536 B

Touch Actions

WebDriver provides an API to send some kinds of touch gestures to the devices, for example, to long press an element you can do:

final WebElement imageView = searchResults.findElement(By.tagName("ImageView"));
new TouchActions(driver).longPress(imageView).perform();

Currently Appium support some of the gestures in the Touch Actions API:

  • flick
  • long press
  • single tap

Some other gestures are supported through the "Alternative access method" explained in Automating mobile gestures