Appium + iOS 小白,遇到了设置手势密码,实在不知道怎么办,请大神帮忙指导。有没有人成功过呢?
如图:
使用过的方法: Swipe
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startX", 32.5);
swipeObject.put("startY", 118.5);
swipeObject.put("endX", 222.5);
swipeObject.put("endY", 118.5);
swipeObject.put("duration", 1.0);
js.executeScript("mobile: swipe", swipeObject);
Swipe 方法可能在 ios6.0 以后版本就不支持了。(未求证)