# 是什么
标签 | 描述 | 参数 |
---|---|---|
p_is_alpha | 是字母 | |
p_is_digit | 是数字 | |
p_is_empty | 是空字符串 | |
p_is_false | 是false | |
p_is_none | 是null | |
p_is_not_empty | 不是空字符串 | |
p_is_not_none | 不是null | |
p_is_true | 是true |
# 包含什么
标签 | 描述 | 参数 |
---|---|---|
p_contains | 包含expect | |
p_contains_ignoring_case | 包含忽略大小写expect | |
p_contains_only | 仅包含expect | |
p_does_not_contain | 不包含expect | |
p_is_equal_to_ignoring_case | 忽略大小写等于expect |
# 匹配什么
标签 | 描述 | 参数 |
---|---|---|
p_does_not_match | 正则不匹配expect | |
p_ends_with | 以expect结尾 | |
p_is_in | 在expect里面 | |
p_is_not_in | 不在expect里面 | |
p_matches | 正则匹配等于expect | |
p_starts_with | 以expect开头 |
# 等于什么
标签 | 描述 | 参数 |
---|---|---|
p_is_equal_to | 等于expect | |
p_is_length | 长度等于expect | |
p_is_not_equal_to | 不等于expect | |
p_sum_equal_expect | 长度等于expect |
# WEB元素断言
标签 | 描述 | 参数 |
---|---|---|
w_not_to_be_editable | 元素已启用 | |
w_not_to_be_empty | 元素不为空 | |
w_not_to_be_enabled | 元素不启用 | |
w_not_to_be_focused | 元素不聚焦 | |
w_not_to_be_hidden | 元素不可隐藏 | |
w_not_to_be_in_viewport | 元素不在视窗中 | |
w_not_to_be_visible | 元素不可见 | |
w_not_to_contain_text | 元素不包含文本 | |
w_not_to_have_class | 元素没有阶级 | |
w_to_be_checked | 复选框已选中 | |
w_to_be_disabled | 元素已禁用 | |
w_to_be_empty | 元素为空 | |
w_to_be_visible | 元素可见 | |
w_to_element_count | 元素是否存在,存在传1,不存在传0 | |
w_to_element_exists | 元素是存在 | |
w_to_element_not_exists | 元素不存在 | |
w_to_have_count | 元素计数 |
# 安卓元素断言
标签 | 描述 | 参数 |
---|---|---|
a_assert_ele_attribute | 断言元素属性 | |
a_assert_ele_center | 断言元素位置 | |
a_assert_ele_exists | 断言元素存在 | |
a_assert_ele_text | 断言元素文本 | |
a_assert_ele_x | 断言元素X坐标 | |
a_assert_ele_y | 断言元素Y坐标 |