最简单的setMusicVolume, scrollUp()或者swipe 都感觉时灵时不灵的。。

已存档

其中,setMusicVolume(0)有时候会让设备无声,大部分时候不回(先打开hamibot客户端,再执行脚本,似乎成功率较高)
scrollUp和swipe,都是滑动一次后就不行了,什么原因?

auto.waitFor()
device.setMusicVolume(0)
sleep(1000)
launchApp('淘宝');
//视频
desc('视频').untilFind().click()
let n = 0
while(n < 100){
    if(text('我的现金').exists()){
        click(600,300)
    }
    swipe(600,2000,600,300,1000);  //昨天可以,今天不行了(最多滑动成功一次)
    scrollUp(1);  //最多滑动成功一次,参数为0,1或者空也不行,用homibot分析淘宝布局,经常找不到或者失效不准确
    sleep(30000)
    n++;
}
device.setMusicVolume(4)
home()
只因你太美 · 11 个月前

回答

只因你太美 · 11 个月前

加上这一行,翻页基本不成功,也不知道为什么。。

if(text('我的现金').exists()){
click(600,300)
}

0
BATU1579
415
· 11 个月前

也许可以试试控件操作?

0