WebViewAssertions
This package is part of the
Android support library which
is no longer maintained.
The support library has been superseded by AndroidX
which is part of Jetpack .
We recommend using the AndroidX libraries in all new projects. You should also consider
migrating existing projects to AndroidX.
To find the AndroidX class that maps to this deprecated class, see the AndroidX
support library class
mappings .
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
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
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)
A WebAssertion which asserts that the document is matched by th provided matcher.
Parameters
domMatcher
Matcher
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.
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.
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]