So far I was only able to use the
adb shell input touchscreen swipe
approach using adb, and the
device.drag()
method from AndroidViewClient.
Both, though, take "speed" as a parameter, and the output is very relevant to the CPU clock speed and what processes are running in the background of the target device. I need something that simulates touching the screen, holding it in place and swiping, then stop moving and then being lifted. Those methods do not work in that way. MonkeyRunner should be able to do that by using DOWN and UP events, but it doesn't work to me as well - I keep getting Broken pipe exceptions (and I read that it's common since MonkeyRunner is buggy).
Any help would be much appreciated. Thanks.