TouchAction ta = new TouchAction(driver); ta.longPress();求详细代码 ---- 谢谢
长按某个元素: ta.longPress(new LongPressOptions().withElement(ElementOption.element(findElement(locator)))); 长按某点: ta.longPress(new LongPressOptions().withPosition(PointOption.point(x,y)));
ta.longPress(new LongPressOptions().withElement(ElementOption.element(findElement(locator))));
ta.longPress(new LongPressOptions().withPosition(PointOption.point(x,y)));