1. 手机打开开发者模式
2. 利用adb连接手机,获取手机序列号,执行adb devices
2. 安装uiautomator2:执行 pip3 install -U uiautomator2
3. 安装 uiautomator2 init,执行:python3 -m uiautomator2 init
然后执行weditor,输入设备序列号就可以查找手机元素啦
1. 手机打开开发者模式
2. 利用adb连接手机,获取手机序列号,执行adb devices
2. 安装uiautomator2:执行 pip3 install -U uiautomator2
3. 安装 uiautomator2 init,执行:python3 -m uiautomator2 init
然后执行weditor,输入设备序列号就可以查找手机元素啦