app定位工具

app定位工具:

  1 uiautomator.bat和monitor.bat 在android-sdk-tools里

  2 Appium Desktop工具里的Inspector

  3 今天发现了个神器,叫weditor,挺好用的 

weditor安装:

  1 pip install  uiautomator2  

  2 pip install weditor

  3 python -m uiautomator2 init 

           会在手机上或虚拟机上安装 atx

 

 

  3 python -m weditor  命令行模式运行,自动打开默认浏览器,最好是chrome,其他的我亲测了下 可能有问题,特别是ie

          也可以 直接weditor -p是指定端口号,-h是帮助

 

   然后会启动浏览器

 

 

 

 

点击tap键 可以生成调试代码

 

 

 

 

    真的很不错的一款工具,良心之作,做app自动化省不少力气,另外weditor  --shortcut 可以生成桌面快捷方式

 

posted @ 2020-04-01 23:35  Yuan_x  阅读(289)  评论(0编辑  收藏  举报