simultor iphone 5s , platform 9.3 , appium version : 1.5.3
Tried the same with these below mentioned ways :
a)
Dimension dimensions = constant.driver.manage().window().getSize();
Double screenHeightStart = dimensions.getHeight() * 0.5;
int scrollStart = screenHeightStart.intValue();
System.out.println(“scrollStart”+scrollStart);
Double screenHeightEnd = dimensions.getHeight() * 0.2;
int scrollEnd = screenHeightEnd.intValue();
System.out.println(“scrollEnd”+scrollEnd);
for (int i=0;i<4;i++)
{
constant.driver.swipe(0,scrollStart,0,scrollEnd,3000);
}
b).
JavascriptExecutor js = (JavascriptExecutor) constant.driver;
// HashMap <String, String> scrollObject = new HashMap <String, String>();
// scrollObject.put(“element”, ((RemoteWebElement) constant.driver.findElement(By.xpath("//UIAApplication[1]/UIAWindow[1]/UIATableView[1]/UIATableCell[8]/UIAStaticText[1]"))).getId());
// js.executeScript(“mobile: scroll”, scrollObject);
Please help