windows平台安装uiautomator2环境和weditor定位工具
uiautomator2的安装直接看github就行,
链接:https://github.com/openatx/uiautomator2
QUICK START
先准备一台(不要两台)开启了开发者选项的安卓手机,连接上电脑,确保执行adb devices可以看到连接上的设备。
运行pip3 install -U uiautomator2 安装uiautomator2;
————or————
# 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
连接手机(设备)之后执行:来初始化手机上的设备环境:
python -m uiautomator2 init
——————————————————————————
weditor的安装:
git clone https://github.com/openatx/weditor
继续执行:
pip3 install -e weditor
然后确认是否安装成功了:
weditor --help
启动weditor
python -m weditor
————ok,安装好了。有需要再补充。