uiautomator2+python自动化测试2-查看app页面元素利器weditor

一,前言

  1. android sdk里面自带的uiautomatorviewer.bat可以查看手机app上的元素,但是不太好用,网上找了个大牛写的weditor,试用了下还是蛮不错的
    python环境:3.6

二,weditor环境准备

  1. 使用pip安装weditor,github地址https://github.com/openatx/weditor
pip install --pre weditor
  1. 创建桌面快捷图标
python -m weditor --shortcut
  1. 创建完成后,桌面会出现一个WEditor快捷图标,双击就能启动了
    在这里插入图片描述
  2. 也可以不创建图标,用命令行启动
python -m weditor
<

版权声明:本文为zhuan_long原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。