Appium的xpath路径获取(包含其他定位方式)

来源:互联网 发布:mysql where or 效率 编辑:程序博客网 时间:2024/06/04 19:26

1.使用uiautomatorviewer把相应的界面截图

2.点击保存后有一个uix文件


3.使用notepad++打开,发现其实是一个xml文件

4.安装xml tools插件(http://jingyan.baidu.com/article/4b07be3c69172648b380f383.html)

5.使用xml tools格式化xml文件

6.使用xml tools中的Evalatue xpath expression,输入xpath路径即可找到相应的node节点




0 0
原创粉丝点击