honeynet / droidbot

A lightweight test input generator for Android. Similar to Monkey, but with more intelligence and cool features!
MIT License
791 stars 230 forks source link

device.view_long_touch(x=x, y=y, duration=200) in TouchEvent(UIEvent) #124

Open chicharitomu14 opened 3 years ago

chicharitomu14 commented 3 years ago

In this situation, all touch events are performed as long-touch events. Why not using device.view_touch(x, y) here? And device.view_touch(x, y) is not called in the whole project.

droidbot

yuanchun-li commented 3 years ago

In some apps that I tested, using view_touch couldn't correctly trigger the touch event, while the 200ms-long touch could stably do the trick. I don't know why...