Appium处理滑动方法是swipe

 

滑动API:Swipe(int start x,int start y,int end x,int y,duration) 
解释: 
int start x-开始滑动的x坐标;
int start y -开始滑动的y坐标 ;
int end x -结束点x坐标;
int end y -结束点y坐标; 
duration 滑动时间(默认5毫秒)。

屏幕左上角为起点,坐标为(0,0),起点往右为Y轴,起点以下为X轴

 

微信来说,登录按钮起点和终点坐标分别为(63,1716)和(432,1860)

 

driver.swipe方法有时候不可用,和maven依赖有关系

可以使用该方法

不可以使用

 

posted @ 2018-10-29 16:42  爱吃橙子  阅读(935)  评论(0编辑  收藏  举报