LayoutElementAssertionsProvider


public final class LayoutElementAssertionsProvider


Provides the main entry point into testing by exposing methods to find a layout element.

Summary

Public methods

final @NonNull LayoutElementAssertion

Finds an element that matches the given condition.

final @NonNull LayoutElementAssertion

Finds the top level element of the element tree added to this LayoutElementAssertionsProvider.

Public constructors

LayoutElementAssertionsProvider

Added in 1.3.0-alpha04
public LayoutElementAssertionsProvider(
    @NonNull LayoutElementBuilders.Layout layout
)

LayoutElementAssertionsProvider

Added in 1.3.0-alpha04
public LayoutElementAssertionsProvider(
    @NonNull LayoutElementBuilders.LayoutElement layoutRoot
)

Public methods

onElement

Added in 1.3.0-alpha04
public final @NonNull LayoutElementAssertion onElement(@NonNull LayoutElementMatcher matcher)

Finds an element that matches the given condition.

onRoot

Added in 1.3.0-alpha04
public final @NonNull LayoutElementAssertion onRoot()

Finds the top level element of the element tree added to this LayoutElementAssertionsProvider.