Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

1 like 0 dislike
339 views
by The go-to Tester (360 points)
retagged by
How to perfrom long touch in devices using appium API methods ?
by The go-to Tester (181 points)
Do you mean to say touch and hold?
by The go-to Tester (360 points)
Sometimes we need to do long touch on a button to open or select it, need to perform same scenario.

1 Answer

0 like 0 dislike
by Master (1.2k points)
 
Best answer
You can use TouchAction class to longPress any element. Try this:

TouchAction action = new TouchAction();
action.longPress(webElement).release().perform();


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

...