{"repo":"openatx/uiautomator2","free":true,"listed":false,"github":"https://github.com/openatx/uiautomator2","clone":"git clone https://github.com/openatx/uiautomator2.git","description":"Android Uiautomator2 Python Wrapper","language":"Python","stars":8276,"topics":["python","uiautomator","test"],"license":"MIT","category":"mobile-apps","readme_excerpt":"uiautomator2 📖 Read the Chinese version A simple, easy-to-use, and stable Android automation library. - QQ Group: 815453846 - Discord: Users still on version 2.x.x, please check 2to3 before deciding to upgrade to 3.x.x (Upgrade is highly recommended). How it Works This framework mainly consists of two parts: 1. Device Side : Runs an HTTP service based on UiAutomator, providing various interfaces for Android automation. 2. Python Client : Communicates with the device side via HTTP protocol, invoking UiAutomator's various functions. Simply put, it exposes Android automation capabilities to Python through HTTP interfaces. This design makes Python-side code writing simpler and more intuitive. The Device Side run with a jar file which is also open source. see Dependencies - Android version 4.4+ - Python 3.8+ Installation Install element inspection tool (optional, but highly recommended): For more detailed usage instructions, refer to: https://github.com/codeskyblue/uiautodev QQ:536481989 Alternatives: uiautomatorviewer, Appium Inspector Quick Start Prepare an Android phone with Developer options enabled, connect it to the computer, and ensure that adb devices shows the connected device. Open a Python interactive window. Then, input the following commands into the window. Example script: Documentation Connecting to Device Method 1: Connect using device serial number, e.g., Q5S5T19611004599 (seen from adb devices ) To connect on a non-default port (default is 9008 ): Method 2: Seri","default_branch":null,"files":null,"tree":[],"storefront":"/r/openatx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/openatx/uiautomator2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}