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 |
assert(@NonNull LayoutElementMatcher matcher)Asserts that the provided |
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
public final @NonNull LayoutElementAssertion assert(@NonNull LayoutElementMatcher matcher)
Asserts that the provided LayoutElementMatcher is satisfied for this element.
assertDoesNotExist
public final void assertDoesNotExist()
Asserts that no element was found in the element tree.
assertExists
public final void assertExists()
Asserts that the element was found in the element tree.