Skip to main content

A lightweight Python package for automating Android devices via uiautomator2

Project description

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.

Project details


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.1.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dc_u2_driver-0.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file dc_u2_driver-0.0.1.tar.gz.

File metadata

  • Download URL: dc_u2_driver-0.0.1.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for dc_u2_driver-0.0.1.tar.gz
Algorithm Hash digest
SHA256 963e48384ab3672fb73548be2d014e30a9e8ecc2291494a1231359df99019514
MD5 55e0fe720f1ef089c0698eb3f3084983
BLAKE2b-256 6fe6a68130deefa97362d6037cf080f761f2ebbffc228686f450e951887c4d8c

See more details on using hashes here.

File details

Details for the file dc_u2_driver-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dc_u2_driver-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0

File hashes

Hashes for dc_u2_driver-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 254a35828fe48ab1f28ce19759b0651dae581d101ca9d025c141a471a504832e
MD5 ffb33ea3f0525ad9131e348cdc80c9a9
BLAKE2b-256 33dc42acf0fd03453a7a28f663ff2d1f62bacb51dfc0532a67303a8d20bc467f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page