Skip to content

Verification

Jye Ruey edited this page Oct 18, 2021 · 2 revisions

Verification

This page provides the usage information for the verification which can be used in the YAML test code's key. "exec" .

Verification List

assert_title

Assert the title of page is the same as the value of expect.

exec:
  verify: assert_title
  expect: "Some title"

assert_text

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_contained_text

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_contained_url

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_contained_attribute

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_is_number

Assert the text of the element is a number.

exec:
  verify: assert_is_number
  page: page_name
  part: part_name

assert_display

Assert that the element displays in the current page.

exec:
  verify: assert_display
  page: page_name
  part: part_name

assert_exist_part

Assert that the element exists in the current page.

exec:
  verify: assert_exist_part
  page: page_name
  part: part_name

assert_not_exist_part

Assert that the element doesn't exist in the current page.

exec:
  verify: assert_not_exist_part
  page: page_name
  part: part_name
Clone this wiki locally