Assertions

Use assertions to enforce expectations for how your app should behave during a UI test. For example, to assert that an element is visible, call ShouldBeVisible on the relevant query:

Label["Credit card number is too long."].ShouldBeVisible();

Query Assertions

Helper Description
ShouldBeVisible Asserts that a query matches something
ShouldNotBeVisible Asserts that a query matches nothing

Assertion Helpers

Theses helpers take a list of queries to make assertions en masse:

ShouldBeVisible(
  Entry["#username"],
  Entry["#password"],
  Button["#login"]
);
Helper Description
ShouldBeVisible Asserts that a query matches something
ShouldNotBeVisible Asserts that a query matches nothing