【发布时间】:2017-02-14 20:39:45
【问题描述】:
我正在尝试从第一个内容向右滑动(左侧没有内容) 到目前为止我在下面使用,但它不起作用,
public void swipeRightToLeft() {
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startX", 0.9);
swipeObject.put("startY", 0.5);
swipeObject.put("endX", 0.01);
swipeObject.put("endY", 0.5);
swipeObject.put("duration", 3.0);
js.executeScript("mobile: swipe", swipeObject);
}
错误日志:org.openqa.selenium.WebDriverException: Not yet implemented. Please help us: http://appium.io/get-involved.html (WARNING: The server did not provide any stacktrace information)
【问题讨论】: