试了几个发现都不行
Java-Client: 4.1.2
public static void doubleClick(WebDriver driver, double x, double y) throws InterruptedException {
HashMap<String, Double> tapObject = new HashMap<String, Double>();
tapObject.put("x", x); // in pixels from left
tapObject.put("y", y); // in pixels from top
tapObject.put("tapCount", 2.0); // double tap
JavascriptExecutor js = (JavascriptExecutor) driver;
js.executeScript("mobile: tap", tapObject);
}
driver.tap(1, settingX, settingY, 5);
Handle.sleep(50);
driver.tap(1, settingX, settingY, 5);
Handle.sleep(100);
TouchAction doubleClick = new TouchAction(driver);
doubleClick.tap(settingX, settingY).release();
doubleClick.tap(settingX, settingY);
// 提示未实现
// driver.performTouchAction(doubleClick);