LayoutElementAssertion


class LayoutElementAssertion


Represents a layout element that can be asserted on.

An instance of [LayoutElementAssertion] can be obtained from 'onElement' method on a [LayoutElementAssertionsProvider].

Summary

Public functions

LayoutElementAssertion

Asserts that the provided LayoutElementMatcher is satisfied for this element.

Unit

Asserts that no element was found in the element tree.

Unit

Asserts that the element was found in the element tree.

Public functions

assert

Added in 1.3.0-alpha03
fun assert(matcher: LayoutElementMatcher): LayoutElementAssertion

Asserts that the provided LayoutElementMatcher is satisfied for this element.

assertDoesNotExist

Added in 1.3.0-alpha03
fun assertDoesNotExist(): Unit

Asserts that no element was found in the element tree.

assertExists

Added in 1.3.0-alpha03
fun assertExists(): Unit

Asserts that the element was found in the element tree.