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: http://ift.tt/1fK2M82
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?
Aucun commentaire:
Enregistrer un commentaire