public void androidSwipe(int startX, int startY, int endX, int endY) throws Exception {
    TouchActions actions = new TouchActions(driver);

    actions.down(startX, startY).perform();
    sleep(0.5);
    actions.move(endX, endY).perform();
    actions.up(endX, endY).perform();
  }
 // Selendroid specific taps at given coordinates in pixels
 public void selendroidTapAtCoordinate(int x, int y, int secs) throws Exception {
   TouchActions actions = new TouchActions(driver);
   actions.down(x, y).perform();
   sleep(secs);
   actions.up(x, y).perform();
 }