Android monkeyrunner - drag method from MonkeyDevice does long-press instead of screen flicking -


the drag method monkeyrunner long-press incorrectly instead of screen flicking/swiping.

device.drag((762,1796),(341,1796), 0.01, 50) 

is there way workaround issue without disabling long-press in test app itself?

it depends on device, if getting long-press instead of drag try increasing number of steps , duration, example:

device.drag((762,1796),(341,1796), 0.5, 50) 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -