1.Install uiautomator2
# Since uiautomator2 is still under development, you have to add --pre to install the development version pip install --upgrade --pre uiautomator2 # Or you can install directly from github source git clone https://github.com/openatx/uiautomator2 pip install -e uiautomator2 测试是否安装成功 uiautomator2 --help
2.Install weditor (UI Inspector)
安装方法:
pip install -U weditor
weditor --help 确认是否安装成功
给weditor创建一个快捷方式
3.将守护程序安装到设备