scroll to element ios appium code example
Example 1: ios appium scroll to element
TouchActions action = new TouchActions(driver);
action.scroll(element, 10, 100);
action.perform();
Example 2: ios appium scroll to element
// Java
JavascriptExecutor js = (JavascriptExecutor) driver;
Map<String, Object> params = new HashMap<>();
params.put("direction", "down");
params.put("element", ((RemoteWebElement) element).getId());
js.executeScript("mobile: swipe", params);