xiaocong / uiautomator

Python wrapper of Android uiautomator test tool.
MIT License
2.04k stars 642 forks source link

Multiple-point swipe #105

Open mingyuan-xia opened 9 years ago

mingyuan-xia commented 9 years ago

Hi, great work first. I am currently using this for performing complex gestures on Android boxes. I am trying to perform a long gesture trail described by an array of points. One thing I noticed is that the original UIAutomator provides [an API](http://developer.android.com/reference/android/support/test/uiautomator/UiDevice.html#swipe%28android.graphics.Point[], int%29) for this purpose but I did not find an equivalence in the python wrapper. I am wondering if this task is not supported or existing wrapper APIs could help accomplish this task. If the latter, an example would be highly appreciated.

mingyuan-xia commented 9 years ago

nvm, I make some attempts with these two patches https://github.com/mingyuan-xia/uiautomator/commit/8a92744cfe1ca60fcc0c1413aeb6d5087d4a47f3 https://github.com/mingyuan-xia/android-uiautomator-jsonrpcserver/commit/edde58562c3912a386c13d3bdf1c0cda31f5fb98

xiaocong commented 9 years ago

I am moving to the new jsonrpc server implementation. These days I don't have enough time to work on the project, so please help submit pull request if you want to merge your code.

really appreciate your patches.