Hi, I am trying to get my AndroidDriver to scroll.
I am trying this:
WebElement secret = driver.findElement(By.id(“com.xxx.verifyxxxtestapp:id/oauth2_resource_edittext”));
TouchActions action = new TouchActions(driver);
action.scroll(secret, 10, 100);
action.perform();
But I get this:
java.lang.ClassCastException: io.appium.java_client.android.AndroidDriver cannot be cast to org.openqa.selenium.interactions.HasTouchScreen
I have imported: import org.openqa.selenium.interactions.touch.TouchActions; as that was the only class available to import. Should I be using an Appium on einstead?