TA的每日心情 | 擦汗 6 小时前 |
---|
签到天数: 527 天 连续签到: 4 天 [LV.9]测试副司令
|
1测试积点
问题:
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>
复制代码
|
|