Appium:四:控件

常用控件

  • 点击:click()
  • 输入:send_keys()
  • 获取属性
  • get_attribute('class')
  • get_attribute('text')
  • get_attribute('resource-id')
  • get_attribute('content-desc')
  • 获取元素状态:返回treu或false
  • get_attribute('clickable')  是否可点击
  • get_attribute('checked')   是否可选中
  • get_attribute('displayed')  是否可见
  • get_attribute('enabled')   是否可用
原文地址:https://www.cnblogs.com/cpas-3-org/p/15334322.html