WebViewAssertions

public final class WebViewAssertions
extends Object

java.lang.Object
   ↳ android.support.test.espresso.web.assertion.WebViewAssertions


A collection of WebAssertions that assert on WebViews.

Summary

Nested classes

interface WebViewAssertions.ResultDescriber

Converts a result to a String. 

Public methods

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

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

static WebAssertion webMatches(Atom atom, Matcher resultMatcher, ResultDescriber resultDescriber)

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

static WebAssertion webMatches(Atom atom, Matcher resultMatcher)

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

Inherited methods

From class java.lang.Object

Public methods

webContent

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

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

Parameters
domMatcher Matcher
Returns
WebAssertion<Document>

webMatches

WebAssertion webMatches (Atom atom, 
                Matcher resultMatcher, 
                ResultDescriber resultDescriber)

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

Parameters
atom Atom: an atom to evaluate on the webview
resultMatcher Matcher: a matcher to apply to the result of the atom.
resultDescriber ResultDescriber: a describer that converts the result to a string.
Returns
WebAssertion

webMatches

WebAssertion webMatches (Atom atom, 
                Matcher resultMatcher)

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

Parameters
atom Atom: an atom to evaluate on the webview
resultMatcher Matcher: a matcher to apply to the result of the atom.
Returns
WebAssertion