Day5-8测试积点任务
问题:Appium 中如何对 ios 表视图进行下拉刷新或上拉加载数据操作
这是我的java代码,但是无论如何也无法针对ios应用中的表视图进行下拉刷新或上拉加
载数据操作,请大侠帮忙
<font face="微软雅黑" size="3"> public void MultiGestureTest() throws InterruptedException {
String js_snippet = "mobile: swipe";
// int startx,starty,endx,endy,duration;
// System.out.println(js_snippet);
// driver.swipe(startx=75, starty=400, endx=75, endy=100, duration=800);
JavascriptExecutor js = (JavascriptExecutor) driver;
HashMap<String, Double> swipeObject = new HashMap<String, Double>();
swipeObject.put("startx",75.0);
swipeObject.put("starty",500.0);
swipeObject.put("endx",75.0);
swipeObject.put("endy",0.0);
swipeObject.put("touchCount",0.5);
swipeObject.put("duration",800.0);
js.executeScript(js_snippet, swipeObject);
System.out.println(js_snippet);
}</font>
可以试试换换scrollObject的对象! 可以试试换换scrollObject的对象! 可以试试换换scrollObject的对象!
换换scrollObject的对象
可以试试换换scrollObject的对象!
页:
[1]