number不是JavascriptExecutor的函数

时间:2014-04-19 19:14:20

标签: java javascript webdriver appium

执行时:

((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

知道这里出了什么问题吗?

感谢。

0 个答案:

没有答案