Im trying to scroll successfully on Appium using the following code:
// java
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put("direction", "down");
scrollObject.put("element", ((RemoteWebElement) element).getId());
js.executeScript("mobile: scroll", scrollObject);
However, am getting a javascript error when trying to scroll beyond the bottom of the UITableView due to a known appium issue: https://github.com/appium/appium/issues/4836
This issue alongside the fact appium's isDisplayed() method always returns true (whether or not the cell is visible on the screen) and appium is unable to click on a non-visible cell, means that appium is unable to scroll and select objects.
Has anyone found a way around this?
So at the moment it looks like there might not be a way round this. Darshan mentioned above the this scrolling issue still exists in iOS 8.4 and from surfing the internet it seems others have the same view
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With