WebAssertion

public abstract class WebAssertion
extends Object

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


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 atom)

Public methods

final Atom 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.

Inherited methods

From class java.lang.Object

Public constructors

WebAssertion

WebAssertion (Atom atom)

Parameters
atom Atom

Public methods

getAtom

Atom getAtom ()

Returns
Atom

toViewAssertion

ViewAssertion toViewAssertion (E result)

Parameters
result E
Returns
ViewAssertion

Protected methods

checkResult

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.