Skip to content

device wrapper of python uiautomator(android) and image comparison

Notifications You must be signed in to change notification settings

hongbinbao/devicewrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

move to hongbinbao/uiautomatorplug

Installation

 sudo pip install devicewrapper

Dependency

1: sudo apt-get install python-opencv
2: sudo apt-get install python-numpy
3: target android device: sdk_version>=16

Usage

>>> from devicewrapper.android import device as d
>>> d.info
>>> d.orientation
>>> d.orientation = 'l'
>>> d.wakeup()
>>> d.start_activity(action='android.intent.action.DIAL', data='tel:xxxx', flags=0x04000000)
>>> d.find('phone_launch_success.png')
>>> d.click(100, 200)
>>> d.click('DPAD_NUMBER_1.png')
>>> d.click('DPAD_NUMBER_1.png', rotation=90)
>>> d.exists(text='string_value_of_screen_layout_component_text_attribute')
>>> d.expect('phone_launch_success.png')
>>> d(text='Settings').click()

About

device wrapper of python uiautomator(android) and image comparison

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages