@Test
    public void swipeTest() {

        HashMap<String, Integer> keycode = new HashMap<String, Integer>();
        keycode.put("keycode", 82);
        ((JavascriptExecutor)driver).executeScript("mobile: keyevent", keycode);

        System.out.println("@@@@@@@@@@@@@@@@@@");


        logger.info("3: " + driver.findElements(By.className("android.widget.TextView")).get(3));
        System.out.println("Before swipe: " + driver.findElements(By.className("android.widget.TextView")).get(3).getText());


        WebElement end = driver.findElements(By.className("android.widget.TextView")).get(10);
        logger.info("10 : " + end.getLocation().getX() + "," + end.getLocation().getY());

        WebElement start = driver.findElements(By.className("android.widget.TextView")).get(9);
        logger.info("9 : " + start.getLocation().getX() + "," + start.getLocation().getY());

        try {
            JavascriptExecutor js = (JavascriptExecutor) driver;
            HashMap<String, Integer> swipeObject = new HashMap<String, Integer>();
            swipeObject.put("startX", 10);
            swipeObject.put("startY", end.getLocation().getY());
            swipeObject.put("endX", 10);
            swipeObject.put("endY", start.getLocation().getY());
            swipeObject.put("duration", 1);
            js.executeScript("mobile: swipe", swipeObject);
        } catch (Exception e) {

        }
        System.out.println("After swipe: " + driver.findElements(By.className("android.widget.TextView")).get(3).getText());

    }