I’m trying to swipe right to left from the first content(there is no content at left hand side) So far I’m using below, but it’s not working.
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);
}
public void swipeLeftToRight() {
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startX", 0.01);
swipeObject.put("startY", 0.5);
swipeObject.put("endX", 0.9);
swipeObject.put("endY", 0.6);
swipeObject.put("duration", 3.0);
js.executeScript("mobile: swipe", swipeObject);
}
Error log: 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)