I’m facing issue in scrolling a dynamic data screen upto the bottom and back to the top of the screen in native ios app.
Here its UIATableView.
scrollTo(), scrollToExact() methods cant be used because the data is dynamic and every time its changes
Try - 1
HashMap scrollObject = new HashMap();
js.executeScript(“mobile: scroll”, scrollObject);
Try - 2
Also tried swipe but unable to scroll it
int topY = element.getLocation().getY();
int bottomY = topY + element.getSize().getHeight();
//int centerX = element.getLocation().getX() + (element.getSize().getWidth()/2);
driver.swipe(0, bottomY, 0, topY, 2000);
By using try - 1 I’m able to scroll screen some what down but not totally to the bottom and up
Please help me in resolving this issue.
Thanks in advance.