/** Swipe from the down to up for a second */ public void dragUp() { super.dragUp(); HashMap<String, String> scrollObject = new HashMap<String, String>(); scrollObject.put("direction", "down"); webDriver.executeScript("mobile: scroll", scrollObject); }
/** Swipe from the left to right for a second */ public void swipeRight() { super.swipeRight(); HashMap<String, String> scrollObject = new HashMap<String, String>(); scrollObject.put("direction", "right"); webDriver.executeScript("mobile: scroll", scrollObject); }