DC U2 Driver
Credit: Original development by Dai Chao Online
DC U2 Driver is a lightweight Python package for automating Android devices using uiautomator2.
It’s designed for developers who want fast device interactions, robust element handling, and simple APIs without extra complexity.
Features
- Connect to Android devices via device ID
- Interact with UI elements using multiple locator types
- Handle clicks, long clicks, and text input
- Retrieve element attributes safely
- Filter English text and skip unwanted UI elements
- Retry clicks and wait for elements with customizable timing
- Supports Python 3.10+
Installation
Install using pip:
pip install dc-u2-driver
Example
from dc_u2_driver import ElementDriver
driver = ElementDriver("device_id_here")
# use driver.work_on_element(...) etc.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dc_u2_driver-0.0.5.tar.gz
(4.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dc_u2_driver-0.0.5.tar.gz.
File metadata
- Download URL: dc_u2_driver-0.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7045ad7514e4aa146a93d7c9fc4e1803d133f0101b4c21eb83ecf9a0af9a1dea
|
|
| MD5 |
d3e447ce71734c530a1bfbe9362d7971
|
|
| BLAKE2b-256 |
6ddf7a0f73db7beb5935deb65ebf1ab55d21419fef83984c89913d017797f2ee
|
File details
Details for the file dc_u2_driver-0.0.5-py3-none-any.whl.
File metadata
- Download URL: dc_u2_driver-0.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
41362164a4a421a567c49d1ac6875ff6a677335ce758ad5d5cc213c98cb7db13
|
|
| MD5 |
5425863b9b9d59ab172d31ae6d56ac42
|
|
| BLAKE2b-256 |
661890896fcb854a9be1af44d6bbf8cca2489276348b361d5a7c8987e3791a04
|