WebViewAssertions


public final class WebViewAssertions


A collection of WebAssertions that assert on WebViews.

Summary

Nested types

Converts a result to a String.

Public methods

static WebAssertion<Document>

A WebAssertion which asserts that the document is matched 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.

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.

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)

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.

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.