Site Loader
Auckland, New Zealand
In this part we will discuss how to perform long press operation in android applications using Appium. Here is the complete video for detailed discussion. Here is the complete code snippet for the above discussion
	@Test
	public void DialarExample() {

		driver.findElementById("com.android.dialer:id/dialpad_button").click();

		TouchAction longPress = new TouchAction(driver);

		longPress.longPress(
				driver.findElementById("com.android.dialer:id/zero")).perform();

		driver.findElementByAccessibilityId("5").click();

	}
Thanks for reading the post and watching the video !!! Please leave your comments and let me know if there is anything I should update in this post. Thanks, Karthik KK

Post Author: Karthik kk

Leave a Reply

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