I have tried implementing the swipe method for android devices, but this method is not working in Appium 1.3.4. Below is the code I have written:
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);
}
And call the swipe() in required place in that same class. It throws error message like this:
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) Command duration or timeout: 7 milliseconds
Please anyone help me on this issue. Thanks