In [1]:
import atx
from atx.ext.report import Report
In [2]:
d = atx.connect('http://127.0.0.1:8100')
d.status()
Out[2]:
In [5]:
d.start_app('com.supercell.magic')
Out[5]:
In [6]:
d.rotation
Out[6]:
In [7]:
rp = Report(d)
rp.patch_wda()
In [8]:
d.display
print d.display
min(d._session.window_size())
#d.click(100, 100)
Out[8]:
In [9]:
d.click_image('train.2208x1242.png')
Out[9]:
In [10]:
d.click_image('left.2208x1242.L170T6.png')
Out[10]:
In [8]:
d.click_image('left.2208x1242.L170T6.png')
Out[8]:
In [9]:
d.click_image('girl.2208x1242.png')
Out[9]:
In [10]:
d.click_image('exit.2208x1242.png')
Out[10]:
In [44]:
d.stop_app()
In [11]:
rp.close()
In [12]:
d._session.orientation
Out[12]:
In [ ]: