I’m trying to change my implementation from driver.findElement().click() to using TouchAction with tap(). However, whenever I search for how to do it, I get multiple results of either TouchAction or TouchActions. I found a way to implement it using TouchAction:
new TouchAction(driver)
.tap(new TapOptions().withElement(
new ElementOption().withElement(driver.findElement(byLocator))
))
.perform();
Question is, what’s the difference between the two? And which one should I use? And is there a more elegant way of implementing a tap action?
Using Appium 1.16.0 btw