-
Notifications
You must be signed in to change notification settings - Fork 12
Verification
Jye Ruey edited this page Oct 18, 2021
·
2 revisions
This page provides the usage information for the verification which can be used in the YAML test code's key. "exec" .
- assert_title
- assert_text
- assert_contained_text
- assert_contained_url
- assert_contained_attribute
- assert_is_number
- assert_display
- assert_exist_part
- assert_not_exist_part
Assert the title of page is the same as the value of expect.
exec:
verify: assert_title
expect: "Some title"
Assert the text of the element is the same as the value of expect.
exec:
verify: assert_text
page: page_name
part: part_name
expect: "text in the element"
Assert the value of expect is contained in the text of the element.
exec:
verify: assert_contained_text
page: page_name
part: part_name
expect: "text was contained in the element"
Assert the value of expect is contained in the url of current page.
exec:
verify: assert_contained_url
expect: "text was contained in url"
Assert the element has the same attribute as the value of expect.
exec:
verify: assert_contained_attribute
page: page_name
part: part_name
expect: "attribute name"
Assert the text of the element is a number.
exec:
verify: assert_is_number
page: page_name
part: part_name
Assert that the element displays in the current page.
exec:
verify: assert_display
page: page_name
part: part_name
Assert that the element exists in the current page.
exec:
verify: assert_exist_part
page: page_name
part: part_name
Assert that the element doesn't exist in the current page.
exec:
verify: assert_not_exist_part
page: page_name
part: part_name