六、RF中断言关键字使用详解

1.should be equal  和should be not equal  :比较两个值相等或不相等

 

2.should start with  和should not start with :判断以该内容开头或不是以该内容开头

 

3.should end with  和should not end with :判断以该内容结束或不是以该内容结束

 

4.页面的断言

Page Should Contain | text 验证页面存在文本内容 
Page Should Not Contain | text 验证页面不存在文本内容 
Element Should Be Disabled | locator 验证元素被禁用 
Element Should Be Enabled | locator 验证元素可用 
Element Should Be Visible | locator | message= 验证元素可见,不可见则输出message 
Element Should Contain | locator | expected | message= 验证元素包含expected,不包含则输出message 
Element Text Should Be | locator | expected | message= 验证元素完全包含expected,不完全包含则输出message

 

posted @ 2018-08-15 17:15  旅行没有终点  阅读(2111)  评论(0编辑  收藏  举报