1.安装UIAutomator2
pip install --upgrade --pre uiautomator2
or:
git clone https://github.com/openatx/uiautomator2
pip install -e uiautomator2
2.安装屏幕截图数据(非必选)
pip install pillow
3.安装设备端程序:uiautomator-server 、atx-agent、openstf/minicap、openstf/minitouch
Github源,较慢:python -m uiautomator2 init
国内推荐,较快:python -m uiautomator2 init –mirror
4.安装weditor UI查看器
pip install –pre -U weditor
5.启动weditor UI查看器
python -m weditor