TouchAction action = new TouchAction(driver); action.longPress(element).waitAction(5000).release().perform(); 完美的解决了 ios 长按的功能