1.启动/关闭 app
启动app:Open Application关闭app:Close Application关闭所有应用:Close All Applications卸载应用:Remove Application后台运行APP:Background App
2.元素操作
单击元素:Click Element单击文字:Click Text单击按钮:Click Button等待页面元素出现:Wait Until Page Contains Element等待页面出现文本:Wait Until Page Contains等待页面不包含元素:Wait Until Page Does Not Contain Element等待页面不包含文本:Wait Until Page Does Not Contain
3.页面滑动
滑动:Swipe滚动:Scroll
4.页面元素校验
检查元素的name属性:Element Name Should Be检查元素是否可见/可用:Element Should Be Enabled检查界面包含某些元素:Page Should Contains Element检查界面包含某些文字信息:Page Should Contains Text检查界面不包含某些元素: Page Should Not Contains Element检查界面不包含某些文字信息:Page Should Not Contains Text
5.其他
获取属性值:Get Element Attribute输入文本:Input Text输入密码:Input Password清空文本内容:Clear Text返回:Go Back模拟对键盘上的按键:Press Keycode获取指定元素:Get Webelements
input Text如果需要输入中文,需要在open application 关键字加入参数unicodeKeyboard=True和resetKeyboard=True两个参数