How to flick to use monkeyrunner? don't just drag

I am trying to automatically scroll the browser using monkeyrunner. So far I can scroll the Drag event, but how can I scroll Flick. I appreciate if you can give me some hits or instructions.

Using drag and drop:

for i in range(1, 40):
   device.drag((400,700),(400,300),0.15,1)
   MonkeyRunner.sleep(.7071)

change

We cannot copy pressure using Monkeyrunner so we cannot click. Just drag and drop is the only way we have now

+5
source share
2 answers

MonkeyDevice.java flick, drag, . , , , (0,01, ?), .

+2

, "" ?

, flick, .

, ,

+1

All Articles