使用 uiautomator dump 获取app上的页面元素

1.输入:adb shell /system/bin/uiautomator dump --compressed /data/local/tmp/uidump.xml

 

 

2.查看页面是否存到了/data/local/tmp目录下

 

3.把/data/local/tmp目录下的uidump.xml文件pull到电脑桌面

adb pull /data/local/tmp/uidump.xml C:/Users/cxy-07-03/Desktop 

  

 

posted @ 2019-08-09 15:11  hayabky  阅读(1937)  评论(0)    收藏  举报