Assertions
Steps for verifying text content, element visibility, element count, and values. Assertion failures cause the step to fail immediately.
assertText
Assert that the text is present (within the element when selector is given).
Parameters
Example
assertVisible
Assert that the element is visible.
Parameters
Example
assertNotVisible
Assert that the element is not visible.
Parameters
Example
assertCount
Assert that the number of elements matching the selector meets the expected condition. Provide count for exact match, or minCount/maxCount for range checks.
Parameters
At least one of count, minCount, or maxCount must be provided.
Example
assertValue
Assert that the element's value prop matches the expected string.