关于UIAutomator 滚动的steps

来源:互联网 发布:mac上刀剑乱舞 编辑:程序博客网 时间:2024/06/02 13:56

tips:

       1.public boolean scrollForward(int steps) throws UiObjectNotFoundException

参数:steps - use steps to control the speed, so that it may be a scroll, or fling 

steps是控制速度的,想要设置滚动距离用for循环


2.public boolean scrollForward()throws UiObjectNotFoundException

默认steps为55

注意:steps不可以过小,过小会出现直接点击进去的现象。设为50左右为好

     

0 0
原创粉丝点击