Skip to main content

Mobile UI Automation, include UI hierarchy inspector, script recorder

Project description

uiautodev

codecov PyPI version

https://uiauto.dev

In China visit: https://uiauto.devsleep.com

UI Inspector for Android, iOS and Harmony help inspector element properties, and auto generate XPath, script.

Install

pip install uiautodev

# or with Harmony support
pip install "uiautodev[harmony]"
# ref
# https://developer.huawei.com/consumer/cn/doc/harmonyos-guides/hypium-python-guidelines

Usage

Usage: uiauto.dev [OPTIONS] COMMAND [ARGS]...

Options:
  -v, --verbose  verbose mode
  -h, --help     Show this message and exit.

Commands:
  server       start uiauto.dev local server [Default]
  android      COMMAND: tap, tapElement, installApp, currentApp,...
  ios          COMMAND: tap, tapElement, installApp, currentApp,...
  self-update  Update uiautodev to latest version
  version      Print version
  shutdown     Shutdown server
# run local server and open browser
uiauto.dev

Environment

# Default driver is uiautomator2
# Set the environment variable below to switch to adb driver
export UIAUTODEV_USE_ADB_DRIVER=1

Offline mode

Start with

uiautodev server --offline

# Specify server url (optional)
uiautodev server --offline --server-url https://uiauto.dev

Visit http://localhost:20242 once, and then disconnecting from the internet will not affect usage.

All frontend resources will be saved to cache/ dir.

DEVELOP

see DEVELOP.md

Links

LICENSE

MIT

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

uiautodev-0.14.0.tar.gz (3.8 MB view details)

Uploaded Source

Built Distribution

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

uiautodev-0.14.0-py3-none-any.whl (3.8 MB view details)

Uploaded Python 3

File details

Details for the file uiautodev-0.14.0.tar.gz.

File metadata

  • Download URL: uiautodev-0.14.0.tar.gz
  • Upload date:
  • Size: 3.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uiautodev-0.14.0.tar.gz
Algorithm Hash digest
SHA256 003da1b1df3c72ec39240d57fe50833b98567e23bad3c77799030b8ec6d95c54
MD5 ea0594a3307c9cd96feb1284835fd4b3
BLAKE2b-256 254d5bb43fd5c7cb463da75f5b0efae91b611539dfe54a77fa8219581f247738

See more details on using hashes here.

File details

Details for the file uiautodev-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: uiautodev-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 3.8 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for uiautodev-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 662933bd3fea80242524f509d6360141a5f159dbb68b1c758c5b69ad5edc3522
MD5 ea96aa2d173be4547ba6f851a2d311b7
BLAKE2b-256 7f6e8dd6e9686da71da79621cf478704bdfc286638141c47dc36550cd2b908a2

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