How to perform double click in android device using appium?
Posted on April 3, 2019
By Sridatta Pani
Code Snippet:
//Java-Client version: Latest(7.0.0)
//Appium version: 1.9.1
MobileElement imageElement=(MobileElement) driver.findElementById("com.davemorrissey.labs.subscaleview.sample:id/imageView");
AndroidTouchAction touch = new AndroidTouchAction(driver);
touch.press(PointOption.point(150, 200)).release().perform().waitAction(WaitOptions.waitOptions(Duration.ofMillis(50))).press(PointOption.point(100, 300)).release().perform();