I am trying to perform a tap at coordinates x, y on a native Android app, on a device that is lower than API 17.
Here's what I am trying:
public void selendroidTapAtCoordinate(final int x, final int y, final int secs) throws Exception {
TouchActions actions = new TouchActions(driver);
actions.down(x, y);
sleep(secs);
actions.up(x, y);
}
The error I get:
java.lang.ClassCastException: io.appium.java_client.AppiumDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen
This is a native app and all I want to do is tap the screen at certain coordintates. Can anyone help with this?
I am using latest version of appium (1.2.3) and java client 1.7.0.
Thanks!