- windows10 + python3
- download android simulator (http://mumu.163.com/)
- pip install uiautomator
- add adb path to environment variable (I installed AndroidStudio here)
C:\Users\xxx\AppData\Local\Android\Sdk\platform-tools
- start android simulator, then connect by adb
adb connect 127.0.0.1:7555
e.g. open QQ at android simulator
from uiautomator import device as d
d.screen.on()
d(text="QQ").click()