WebViewAssertions

public final class WebViewAssertions
extends Object

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


集合 WebAssertion s表示上断言 WebView秒。

Summary

Nested classes

interface WebViewAssertions.ResultDescriber<E>

将结果转换为字符串。

Public methods

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

一个WebAssertion,声明文档与提供的匹配器匹配。

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

WebAssertion声明给定的Atom的结果被提供的匹配器接受。

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

WebAssertion声明给定的Atom的结果被提供的匹配器接受。

Inherited methods

From class java.lang.Object

Public methods

webContent

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

一个WebAssertion,声明文档与提供的匹配器匹配。

Parameters
domMatcher Matcher
Returns
WebAssertion<Document>

webMatches

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

WebAssertion声明给定的Atom的结果被提供的匹配器接受。

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<E>

webMatches

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

WebAssertion声明给定的Atom的结果被提供的匹配器接受。

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