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(); }