TouchAction action = new TouchAction(driver); action.press(x, y).moveTo(enter image description herex, y).release().perform();