Why is tap() deprecated?


#1

I’ve searched, but not found the answer.

Why is the AppiumDriver class’ tap() method deprecated?
What should I use instead?(This is in Java).


#2

choose any:

 new TouchAction((MobileDriver) driver).tap(element or x,y or element+offset x,y).perform();
 new TouchAction((MobileDriver) driver).press(element or x,y or element+offset x,y).waitAction(50).release().perform();
 element.click();

#3

Hi Aleksei,
Can you please share your solution for previously raised issue?
Since now tap() is deprecated, I should use TouchAction() but I can’t make it work.

Thank you very much!