Hello!
So I’m currently trying scroll to a button that is not shown unless I scroll down on the page.
Basically all searches I do I get the impression im supposed to use “scrollTo()” method but it doesnt work in the
v1.4.16 appium version im using together with java client 4.1.2.
Tried the following:
-
touchActions() but I just can’t grap how Im supposed to make it work.
-
A javascript executor like this
`JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> HiddenButton= new HashMap<String, String>();
HiddenButton.put(“direction”, “down”);
js.executeScript(“mobile: scroll”, HiddenButton);
This code snippet gives me :org.openqa.selenium.WebDriverException: ERROR running Appium command: string is not a function .
So my question to you guy is, how do I scroll down to the buttom of a native app page easiest?
Appreciate all help.
Java, Appium, POM, TestNG,
`