Assertion

An assertion is a validation to run against the current state of an element or page.

text

required false
type string
default nil

If provided, asserts that the Text of the selection matches the provided value.

Example

            name: "Ensure text matches"
            text: "Bar"

query

required false
type [] KV
default nil

If provided, validates the url query arguments match each provided query.

Example

    name: "Validate input is in query"
    query:
      -
        key: "q"
        value: "Selenium"

attributes

required false
type [] KV
default nil

If provided, validates the attributes of the selected elements.

Example

            name: "Ensure value is set correctly"
            attributes:
              -
                key: "value"
                value: "Selenium"