LayoutElementAssertion


public final 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 methods

final @NonNull LayoutElementAssertion

Asserts that the provided LayoutElementMatcher is satisfied for this element.

final void

Asserts that no element was found in the element tree.

final void

Asserts that the element was found in the element tree.

Public methods

assert

Added in 1.3.0-alpha05
public final @NonNull LayoutElementAssertion assert(@NonNull LayoutElementMatcher matcher)

Asserts that the provided LayoutElementMatcher is satisfied for this element.

assertDoesNotExist

Added in 1.3.0-alpha05
public final void assertDoesNotExist()

Asserts that no element was found in the element tree.

assertExists

Added in 1.3.0-alpha05
public final void assertExists()

Asserts that the element was found in the element tree.