Hi !
look this !
public void scrollElementoWeb(def params){
MobileElement element = Elementos.find(params, Driver.driver);
JavascriptExecutor js = (JavascriptExecutor) Driver.driver;
try{
int x = element.getLocation().getX();
int y = element.getLocation().getY();
js.executeScript("window.scrollBy(" + x + "," + y + ")", "");
}catch(Exception e){
try{
js.executeScript("arguments[0].scrollIntoView(true);",element);
}catch(Exception f){
assert false,"No se pudo realizar scroll en la pagina web en el elemento ${params."Tipo ID"}:'${params.ID}'. ${f}"
}
}
}`
try running this script ! this is groovy but the js functions is the key!