WebAssertion


public abstract class WebAssertion

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

Parameters

The type the specific Atom returns.

Summary

Public fields

final Atom
@RemoteMsgField(order = 0)
atom

Public constructors

Public methods

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

Public fields

atom

@RemoteMsgField(order = 0)
public final Atom atom

Public constructors

WebAssertion

@RemoteMsgConstructor
public WebAssertion(Atom atom)

Public methods

getAtom

public final Atom getAtom()

toViewAssertion

public final ViewAssertion toViewAssertion(E result)

Protected methods

checkResult

protected abstract void checkResult(WebView view, E result)

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

Parameters
WebView view

the WebView that the Atom was evaluated on.

E result

the result of atom evaluation.