1.1、UIAutomatorView
Android SDK 自带的定位工具
位置:D:\android-sdk_r24.4.1-windows\android-sdk-windows\tools (uiautomatorviewer.bat)
元素常见属性:text
resourceid
class:元素标签
content-desc :元素功能描述 语音播报
1.2、Appium Inspector
从官网下载,Appium Inspector.exe
1.3 Weditor
Uiautomator2 python 第三方库,appUi自动化测试框架
安装:
先安装Uiautomator2:pip install Uiautomator2
再安装:python -m uiautomator2 init
最后安装weditor:pip install weditor
安装失败的时候,请看下面这个链接python安装weditor失败, error: subprocess-exited-with-error - 慕婉清 - 博客园 (cnblogs.com)
确认安装:weditor --help