--
http://appium.io
---
You received this message because you are subscribed to the Google Groups "Appium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appium-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/appium-discuss.
For more options, visit https://groups.google.com/groups/opt_out.
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startX", 10.0);
swipeObject.put("startY", 154.0);
swipeObject.put("endX", 120.0);
swipeObject.put("endY", 154.0);
swipeObject.put("duration", 1.8);
js.executeScript("mobile: drag", swipeObject);
but have - org.openqa.selenium.WebDriverException: Not yet implemented.
WebElement elem4drag = driver.findElement(By.xpath("/window[1]/scrollview[1]/button[2]"));
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, String> swipeObject = new HashMap<String, String>();
swipeObject.put("element", ((RemoteWebElement)elem4drag).getId());
js.executeScript("mobile: longClick", swipeObject);
And have the same Exception :(