WebViewAssertions


class WebViewAssertions


A collection of WebAssertions that assert on WebViews.

Summary

Nested types

Converts a result to a String.

Public functions

java-static WebAssertion<Document!>!
webContent(domMatcher: Matcher<Document!>!)

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

java-static WebAssertion<E!>!
<E> webMatches(atom: Atom<E!>!, resultMatcher: Matcher<E!>!)

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

java-static WebAssertion<E!>!
<E> webMatches(
    atom: Atom<E!>!,
    resultMatcher: Matcher<E!>!,
    resultDescriber: WebViewAssertions.ResultDescriber<Any!>!
)

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

Public functions

webContent

java-static fun webContent(domMatcher: Matcher<Document!>!): WebAssertion<Document!>!

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

webMatches

java-static fun <E> webMatches(atom: Atom<E!>!, resultMatcher: Matcher<E!>!): WebAssertion<E!>!

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

Parameters
atom: Atom<E!>!

an atom to evaluate on the webview

resultMatcher: Matcher<E!>!

a matcher to apply to the result of the atom.

webMatches

java-static fun <E> webMatches(
    atom: Atom<E!>!,
    resultMatcher: Matcher<E!>!,
    resultDescriber: WebViewAssertions.ResultDescriber<Any!>!
): WebAssertion<E!>!

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

Parameters
atom: Atom<E!>!

an atom to evaluate on the webview

resultMatcher: Matcher<E!>!

a matcher to apply to the result of the atom.

resultDescriber: WebViewAssertions.ResultDescriber<Any!>!

a describer that converts the result to a string.