https://github.com/openatx/uiautomator2
uiautomator2 是一个可以使用Python对Android设备进行UI自动化的库
安装
- 装uiautomator2
pip install --upgrade uiautomator2
pip install pillow - 部署守护进程
python -m uiautomator2 init - 装weditor UI查看器
pip install -U weditor
运行python -m weditor - 备注:每次启动时运行python -m uiautomator2 init 和 python -m weditor就可以了