Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Appium not able to scroll on iOS 8.4

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?

like image 726
Charlie Seligman Avatar asked Nov 09 '22 06:11

Charlie Seligman


1 Answers

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

like image 197
Charlie Seligman Avatar answered Nov 14 '22 23:11

Charlie Seligman