Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

enhancement for the python wrapper of android uiautomator. provides image comparision method

Project description

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()

Project details


Release history Release notifications

This version
History Node

1.1.5

History Node

1.1.4

History Node

1.1.3

History Node

1.1.2

History Node

1.1.1

History Node

1.1.0

History Node

1.0.9

History Node

1.0.8

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
uiautomatorplug-1.1.5.tar.gz (6.7 kB) Copy SHA256 hash SHA256 Source None Nov 11, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page