1.启动/关闭 app

  1. 启动appOpen Application
  2. 关闭appClose Application
  3. 关闭所有应用:Close All Applications
  4. 卸载应用:Remove Application
  5. 后台运行APPBackground App

2.元素操作

  1. 单击元素:Click Element
  2. 单击文字:Click Text
  3. 单击按钮:Click Button
  4. 等待页面元素出现:Wait Until Page Contains Element
  5. 等待页面出现文本:Wait Until Page Contains
  6. 等待页面不包含元素:Wait Until Page Does Not Contain Element
  7. 等待页面不包含文本:Wait Until Page Does Not Contain

3.页面滑动

  1. 滑动:Swipe
  2. 滚动:Scroll

4.页面元素校验

  1. 检查元素的name属性:Element Name Should Be
  2. 检查元素是否可见/可用:Element Should Be Enabled
  3. 检查界面包含某些元素:Page Should Contains Element
  4. 检查界面包含某些文字信息:Page Should Contains Text
  5. 检查界面不包含某些元素: Page Should Not Contains Element
  6. 检查界面不包含某些文字信息:Page Should Not Contains Text

5.其他

  1. 获取属性值:Get Element Attribute
  2. 输入文本:Input Text
  3. 输入密码:Input Password
  4. 清空文本内容:Clear Text
  5. 返回:Go Back
  6. 模拟对键盘上的按键:Press Keycode
  7. 获取指定元素:Get Webelements
  1. input Text如果需要输入中文,
  2. 需要在open application 关键字加入参数unicodeKeyboard=TrueresetKeyboard=True两个参数