public final class

WebViewAssertions

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

Class Overview

A collection of WebAssertions that assert on WebViews.

Summary

Nested Classes
interface WebViewAssertions.ResultDescriber<E> 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 <E> WebAssertion<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 <E> WebAssertion<E> webMatches(Atom<E> atom, Matcher<E> resultMatcher, ResultDescriber<? super E> resultDescriber)
A WebAssertion which asserts that the given Atom's result is accepted by the provided matcher.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

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

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

public static WebAssertion<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 an atom to evaluate on the webview
resultMatcher a matcher to apply to the result of the atom.

public static WebAssertion<E> webMatches (Atom<E> atom, Matcher<E> resultMatcher, ResultDescriber<? super E> resultDescriber)

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

Parameters
atom an atom to evaluate on the webview
resultMatcher a matcher to apply to the result of the atom.
resultDescriber a describer that converts the result to a string.