Appium 元素定位工具

本文介绍了三种用于Appium元素定位的工具:UIAutomatorView,它是Android SDK自带的定位工具,提供了text, resource-id, class和content-desc等属性;Appium Inspector是从官网下载的独立工具;Weditor是基于Uiautomator2的Python第三方库,用于appUI自动化测试,安装过程包括Uiautomator2和weditor的pip安装。" 113600369,10326157,MySQL8.0详细安装教程,"['MySQL', '数据库安装', 'Linux系统', 'Ubuntu系统', 'Windows系统']
摘要由CSDN通过智能技术生成

1.1、UIAutomatorView

Android SDK 自带的定位工具

位置:D:\android-sdk_r24.4.1-windows\android-sdk-windows\tools   (uiautomatorviewer.bat)

元素常见属性:text

resourceid

class:元素标签

content-desc :元素功能描述 语音播报

1.2、Appium Inspector

从官网下载,Appium Inspector.exe

 

1.3 Weditor

Uiautomator2 python 第三方库,appUi自动化测试框架

安装:

先安装Uiautomator2:pip install Uiautomator2 

再安装:python -m uiautomator2 init

最后安装weditor:pip install weditor

安装失败的时候,请看下面这个链接python安装weditor失败, error: subprocess-exited-with-error - 慕婉清 - 博客园 (cnblogs.com)

确认安装:weditor --help

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值