1
而不是在Android调试桥或AndroidViewClient这样使用drag
或swipe
命令:模拟触摸,按住,移动在android系统调试桥
device.drag((600,800),(600,1200), 1000)
device.shell('input touchscreen swipe 600 800 600 1200 1000')
是否有某种方式来模拟像下面这样?
1. press down on some coordinates (eventType=DOWN)
2. sleep 2 seconds (i.e. keep holding there)
3. move to some other coordinates
2. sleep 2 seconds (i.e. keep holding there)
5. release (eventType=UP)
基本上,你触摸,在那里保持几秒钟,拖动并保持在那里几秒钟,然后松开垫。