Need help with android-uiautomator-server?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

xiaocong
142 Stars 195 Forks MIT License 48 Commits 13 Opened issues

Services available

!
?

Need anything else?

Contributors list

# 53,044
golang
cheat-s...
Python
16 commits
# 218,138
Java
Kotlin
4 commits
# 106,516
oauth2
eggjs
node
HTML
1 commit
# 103,778
CSS
Shell
C++
ssh-cli...
1 commit

Purpose

UIAutomator is a great tool to perform Android UI testing, but to do it, you have to write java code, compile it, install the jar, and run. It's a complex steps for all testers...

This project is to build a light weight jsonrpc server in Android device, so that we can just write PC side script to write UIAutomator tests.

Build

  • Run command:

    $ ./gradlew build
    $ ./gradlew packageDebugAndroidTest
    
  • Run the jsonrcp server on Android device

    $ ./gradlew cC
    $ adb forward tcp:9008 tcp:9008 # tcp forward
    

How to use

from uiautomator import device as d

d.info d.screen.on() d(text="Settings").click() d(scrollable=True).scroll.vert.forward() d().gestureM((100,200),(100,300),(100,400)).to((100,400),(100,400),(100,400),100)

Refer to python wrapper library uiautomator.

Notes

If you have any idea, please email [email protected], [email protected] or submit tickets.

Dependencies

TODO

  • android O support

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.