APP元素定位工具之——Weditor

1、weditor的说明

    WEditor可以理解为在浏览器中打开的uiautomatorviewer,个人使用起来比uiautomatorviewer更好用,不会像uiautomatorviewer那样由于安卓系统的不同,会出现各种情况,还支持安卓、ios、Neco(beta);

如果在使用uiautomatorviewer遇到问题时,可以采用WEditor试试(个人更偏向使用weditor)。

2、weditor的安装

GitHub地址:https://github.com/openatx/weditor

进入cmd,输入pip install --pre --upgrade weditor

3、weditor的使用

3.1 链接手机,并打开手机的调试模式

3.2 打开cmd,输入python -m uiautomator2 init,进行初始化,安装uiautomator  atx-agent部署守护进程

3.3打开cmd,输入python  -m  weditor   会在浏览器打开一个页面,如下图所示,就可以进行元素定位了

猜你喜欢

转载自www.cnblogs.com/htx18/p/11832258.html