执行时:
((JavascriptExecutor) driver).executeScript("mobile: longClick", new HashMap<String, Double>() {{ put("x", (double)30); put("y", (double)50);put("touchCount", (double)1); put("duration", 5.0); }});
我明白了:
org.openqa.selenium.WebDriverException: ERROR running Appium command: number is not a function
知道这里出了什么问题吗?
感谢。