1 什么是uiautomator

uiautomator工具使用(7)

uiautomator工具使用(7)

 

 

2 uiautomator组成

uiautomator工具使用(7)

 uiautomator工具使用(7)

 

 

3 uiautomator viewer

D:\SDK\tools\uiautomatorviewer.bat 打开此文件

uiautomator工具使用(7)

 uiautomator工具使用(7)

 

 

连接设备

uiautomator工具使用(7)

 uiautomator工具使用(7)

 

 

升级方法

下载升级包

  https://github.com/lazytestteam/lazyuiautomatorviewer

 

替换文件

1. 将所有jar包拷贝到%SDK%/tools\lib目录下,覆盖原来的uiautomatorviewer.jar ,

2 替换tools/lib目录下的文件

uiautomator工具使用(7)

 uiautomator工具使用(7)

 

3 把com,image 文件新增到tools目录下

uiautomator工具使用(7)

 

uiautomator工具使用(7)

4 启动 uiautomatorviewer.bat工具

uiautomator工具使用(7)

 

uiautomator工具使用(7)

 使用注意事项:

  获取app屏幕元素的时候,屏幕必须为静态数据,视频必须暂停.

  如果第一个获取屏幕的工具报错,我们可以使用第二个工具.

  

 

  

相关文章:

  • 2021-10-02
  • 2021-08-14
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2021-12-04
  • 2021-04-08
  • 2021-08-08
猜你喜欢
  • 2021-07-24
  • 2021-09-20
  • 2022-12-23
  • 2021-06-21
  • 2021-04-07
  • 2022-02-28
  • 2022-01-11
相关资源
相似解决方案