uiautomatorviewer 不显示resource-id

相关推荐
uiautomatorviewer
一部分文件,替换后可以获得元素坐标和相对Xpath
移动应用脚本编写要求.pdf
移动应用脚本编写要求.pdf
lazyuiautomatorviewer 增强版uiautomatorviewer
lazyuiautomatorviewer 增强版uiautomatorviewer。 增强版uiautomatorviewer 可生成app控件唯一相对Xpath 1.如果只包含resource-id,且唯一,则直接用resource-id,其Xpath为://android.XX.XXX[@resource-id=\"com.duowan.mobile:id/rb_main\"] 2.如果只存在text,且唯一,则直接用text,其Xpath为://android.XX.XXX[@text=\"直播\"] 3.如果只存在content-desc,且唯一,则直接用content-desc,其Xpath为://android.XX.XXX[@content-desc=\"热门推荐\" ;] 4.如果不满足1/2/3,且存在resource-id、text、content-desc,三者取其二或者取其三能唯一定位,则其Xpath类似: //X.XX.XXX[@resource-id=\"abc\" and @text=\"狂热\" and @content-desc=\"推荐\"] 5.如果不满足1/2/3/4,则递归地寻找其父节点,直到找到唯一。再从其父节点开始,取绝对路径(元素索引),加起来唯一定位,其Xpath类似: //X.XX.XXX[@resource-id=\"android:id/list\"]/X.XX.XXX[1]/X.XX.XXX[2] 6.以上全不满足,则给出其绝对路径(元素索引),来唯一定位,其Xpath类似: //X.XX.XXX[1]/X.XX.XXX[2]/X.XX.XXX[5]/X.XX.XXX[2]
UiAutomatorViewer源码 (附带jar包)
UiAutomatorViewer源码 (附带jar包) 导入项目即可使用,已解决8.0 不能获取快照 (windows7) windows10 需替换 swt.jar 包
uiautomatorviewer xpath
uiautomatorviewer xpath


移动开发其他问题
