Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Monkeyrunner 的拖动方法总是错误地长按而不是屏幕轻弹/滑动。
device.drag((762,1796),(341,1796), 0.01, 50)
有没有办法在不禁用测试应用程序本身的长按的情况下解决这个问题?
这取决于设备,但如果您是长按而不是拖动,请尝试增加步数和持续时间,例如:
device.drag((762,1796),(341,1796), 0.5, 50)