开发者

Darg the screen in android device with MonkeyRunner?

开发者 https://www.devze.com 2023-03-18 00:25 出处:网络
I use python code as follow to horizontal drag t开发者_Python百科he screen, but the device will response with long press event. I do not know why it is.I sincerely somebody could help me to solve this

I use python code as follow to horizontal drag t开发者_Python百科he screen, but the device will response with long press event. I do not know why it is.I sincerely somebody could help me to solve this problem, thanks~!

Python code:

device.drag((380,520),(300,520),0.1,10)


I have the same issue with you in my application. My solution is just to disable the long press. Actually, what I found is not only for the 'drag', the onLongPress() would also be triggered by MoneyDevice.press(), then it fails to simulator the double-click by two calls to press().

After all, by disable Long-Press, the drag() and two press() work for me!

0

精彩评论

暂无评论...
验证码 换一张
取 消