Skip to main content

reference:

the python wrapper of android uiautomator:

https://pypi.python.org/pypi/uiautomator/

dependency:

1: sudo apt-get install python-opencv

2: sudo apt-get install python-numpy

3: target android device: sdk_version>=16

usage:

>>> from uiautomatorplug.android import device as d
>>> d.info
>>> d.orientation
>>> d.orientation = 'l'
>>> d.wakeup()
>>> d.start_activity('--activity-clear-task', action='android.intent.action.DIAL', data='tel:xxxx', flags=0x04000000)
>>> d.start_activity('--activity-clear-task', component='com.android.settings/.Settings')
>>> d.find('phone_launch_success.png')
>>> d.click(100, 200)
>>> d.click('abspath/DPAD_NUMBER_1.png')
>>> d.click('abspath/DPAD_NUMBER_1.png', rotation=90)
>>> d.exists(text='string_value_of_screen_layout_component_text_attribute')
>>> d.expect('abspath/phone_launch_success.png')
>>> d(text='Settings').click()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uiautomatorplug-1.1.5.tar.gz (6.7 kB view details)

Uploaded Source

File details

Details for the file uiautomatorplug-1.1.5.tar.gz.

File metadata

File hashes

Hashes for uiautomatorplug-1.1.5.tar.gz
Algorithm Hash digest
SHA256 0a2d457b31b5a274d21a37e30f78b6096ed6fe457f0c87724e74d71ba4d44a23
MD5 5c38ff771a400b6acb68f37c48e41737
BLAKE2b-256 fb64ffb71c3f2214c0e89e31edfa19b60645a7a4ffdc878565b471e3a86ecccd

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.5 This release

1 file

1.1.4

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.9

1 file

1.0.8

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page