uiautomator_python使用汇总

1.判断按钮状态
if d(resourceId="id",enabled=False): #判断当前按钮是否为未激活状态,为True则为激活状态
2.获取toast提示语
d.toast.get_message(5.0, default="")
3. 获取元素的属性
ele = d(resourceId="id") ele.info ele.info[""enabled] ele.info["checked"]






原文地址:https://www.cnblogs.com/jiguanghover/p/10334032.html