WebViewAssertions
public final class WebViewAssertions
extends Object
java.lang.Object |
↳ |
android.support.test.espresso.web.assertion.WebViewAssertions |
集合 WebAssertion
s表示上断言 WebView
秒。
Summary
Inherited methods |
From class java.lang.Object
Object |
clone() |
boolean |
equals(Object arg0) |
void |
finalize() |
final Class<?> |
getClass() |
int |
hashCode() |
final void |
notify() |
final void |
notifyAll() |
String |
toString() |
final void |
wait(long arg0, int arg1) |
final void |
wait(long arg0) |
final void |
wait() |
|
Public methods
webContent
WebAssertion<Document> webContent (Matcher<Document> domMatcher)
一个WebAssertion,声明文档与提供的匹配器匹配。
Parameters |
domMatcher |
Matcher
|
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. |
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. |