- I want to do scroll action in iOS app without using specific web element.
- I can able to do scroll down and scrollTo web element in iOS app.
- Is there any method to scroll down till the end of the page?
Did you try:
import org.openqa.selenium.JavascriptExecutor;
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put(“direction”, “down”);
js.executeScript(“mobile: scroll”, scrollObject);
Please tell me if it works for you -> on IOS should work.