How to perform double click in android device using appium? – pCloudy – Question and Answers
Home >> Appium Tricks and Tricks >> How to perform double click in android ...

How to perform double click in android device using appium?


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();

Leave a Reply

Your email address will not be published. Required fields are marked *