0
点赞
收藏
分享

微信扫一扫

Appium滑动

f12b11374cba 2022-08-01 阅读 54

TouchAction touchAction = new TouchAction(this);

// appium converts press-wait-moveto-release to a swipe action

touchAction.press(startx, starty).waitAction(duration)

.moveTo(endx, endy).release();

touchAction.perform();

提示:swipe 的高级用法,swipe 可以进一步封装,比如一些MobileElement需要滑动屏幕

才能出现,这个时候就可以封装一个滚动到这些MoblieElement出现为止的方法。

举报

相关推荐

0 条评论