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

博客介绍了UIAutomator2及相关工具的安装与启动步骤。包括通过git和pip安装UIAutomator2,可选安装屏幕截图数据,使用命令安装设备端程序,通过pip安装weditor UI查看器,最后用命令启动该查看器。
3万+

被折叠的 条评论
为什么被折叠?



