public abstract class

WebAssertion

extends Object
java.lang.Object
   ↳ androidx.test.espresso.web.assertion.WebAssertion<E>

Class Overview

Similar to a ViewAssertion, a WebAssertion allows users to check the results of an atom evaluated against the provided WebView.

Summary

Public Constructors
WebAssertion(Atom<E> atom)
Public Methods
final Atom<E> getAtom()
final ViewAssertion toViewAssertion(E result)
Protected Methods
abstract void checkResult(WebView view, E result)
Extension point to validate a view and atom result on the main thread.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public WebAssertion (Atom<E> atom)

Parameters
atom Atom

Public Methods

public final Atom<E> getAtom ()

Returns
Atom<E>

public final ViewAssertion toViewAssertion (E result)

Parameters
result E
Returns
ViewAssertion

Protected Methods

protected abstract void checkResult (WebView view, E result)

Extension point to validate a view and atom result on the main thread.

Parameters
view WebView: the WebView that the Atom was evaluated on.
result E: the result of atom evaluation.