Poco icon indicating copy to clipboard operation
Poco copied to clipboard

click的间隔时间怎么控制,我有个1秒点10下的需求,试了很久不行

Open lance000001 opened this issue 3 years ago • 5 comments
trafficstars

# 指定设备对象初始化unity poco
poco = UnityPoco(addr, device=dev,
                 action_interval=0.0001,
                 poll_interval=0.0001,
                 pre_action_wait_for_appearance=0.001
                 )

ui_button = poco('Button')
for i in range(10):
    ui_button.click(sleep_interval=0.001)

ui_cube = poco("Cube")
ui_cube.click()

lance000001 avatar Oct 15 '22 12:10 lance000001

我写成上面这样,还是每秒点1下 想知道怎么能1秒点10下

lance000001 avatar Oct 15 '22 12:10 lance000001

1、重编译一下click方法,控件找一次点10次 2、你这个需求挺奇葩呀

wangchy0927 avatar Oct 18 '22 09:10 wangchy0927

不算奇葩吧,就是找一次,然后反复多点几次,因为UI不会有变化,重编译是啥意思?

lance000001 avatar Oct 19 '22 02:10 lance000001

使用freeze()冻结页面元素会使点击更快,但1秒十几下有点不太现实

qwerdome avatar Oct 27 '22 06:10 qwerdome

这是打算抢红包么?;)

9nehS avatar Dec 08 '22 02:12 9nehS