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两个参数