Skip to main content

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

Project description


the python wrapper of android uiautomator:


1: sudo apt-get install python-opencv

2: sudo apt-get install python-numpy

3: target android device: sdk_version>=16


>>> from import device as d
>>> 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='')
>>> d.find('phone_launch_success.png')
>>>, 200)
>>>'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

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

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page