uiautomatorviewer使用教程

uiautomatorviewer使用教程

  • 介绍
    • 命令使用模式(可以解决使用工具无法获取的问题)
    • 工具使用方式

介绍

要使用该工具必须先安装android sdk,安装后在安装目录找到adb工具和uiautomatorviewer。

命令使用模式(可以解决使用工具无法获取的问题)

1、截取uix
adb shell uiautomator dump /sdcard/screen.uix
adb pull /sdcard/screen.uix

2、获取截图
adb shell screencap -p /sdcard/screen.png
adb pull /sdcard/screen.png

3、导入图片和资源文件
uiautomatorviewer使用教程_第1张图片

工具使用方式

使用工具栏按钮即可
在这里插入图片描述

你可能感兴趣的:(uiautomatorviewer使用教程)