Stay organized with collections Save and categorize content based on your preferences.

WebViewAssertions

public final class WebViewAssertions


A collection of WebAssertions that assert on WebViews.

Summary

Nested types

public interface WebViewAssertions.ResultDescriber<E>

Converts a result to a String.

Public constructors

Public methods

static WebAssertion<Document>
webContent(Matcher<Document> domMatcher)

A WebAssertion which asserts that the document is matched by the provided matcher.

static WebAssertion<E>
<E> webMatches(
    Atom<E> atom,
    Matcher<E> resultMatcher,
    WebViewAssertions.ResultDescriber<Object> resultDescriber
)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

static WebAssertion<E>
<E> webMatches(Atom<E> atom, Matcher<E> resultMatcher)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Public constructors

WebViewAssertions

public WebViewAssertions()

Public methods

webContent

public static WebAssertion<DocumentwebContent(Matcher<Document> domMatcher)

A WebAssertion which asserts that the document is matched by the provided matcher.

webMatches

public static WebAssertion<E> <E> webMatches(
    Atom<E> atom,
    Matcher<E> resultMatcher,
    WebViewAssertions.ResultDescriber<Object> resultDescriber
)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Parameters
Atom<E> atom

an atom to evaluate on the webview

Matcher<E> resultMatcher

a matcher to apply to the result of the atom.

WebViewAssertions.ResultDescriber<Object> resultDescriber

a describer that converts the result to a string.

webMatches

public static WebAssertion<E> <E> webMatches(Atom<E> atom, Matcher<E> resultMatcher)

A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.

Parameters
Atom<E> atom

an atom to evaluate on the webview

Matcher<E> resultMatcher

a matcher to apply to the result of the atom.