WebViewAssertions
public
final
class
WebViewAssertions
extends Object
java.lang.Object | |
↳ | android.support.test.espresso.web.assertion.WebViewAssertions |
A collection of WebAssertion
s that assert on WebView
s.
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, ResultDescriber<? super E> resultDescriber)
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)
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<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 |
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)
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<E> |
Interfaces
Classes
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.