Ram*_*esh 5 selenium android appium
我尝试在 android 中使用 swipe 方法,但它不起作用。
代码:-
public void swipe() {
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap < String, Double > swipeObject = new HashMap < String, Double > ();
swipeObject.put("startX", 0.95);
swipeObject.put("startY", 0.5);
swipeObject.put("endX", 0.05);
swipeObject.put("endY", 0.5);
swipeObject.put("duration", 1.0);
js.executeScript("emulator: swipe", swipeObject);
}
Run Code Online (Sandbox Code Playgroud)
错误:-
org.openqa.selenium.WebDriverException: Not yet implemented.
Run Code Online (Sandbox Code Playgroud)
任何帮助很大的apprciation。
| 归档时间: |
|
| 查看次数: |
676 次 |
| 最近记录: |