| java.lang.Object | |
| ↳ | android.support.test.espresso.web.action.AtomAction<E> |
A ViewAction which causes the provided Atom to be evaluated within a webview.
It is not recommended to use AtomAction directly.
Instead for examples of how to interact with a WebView's content through Atoms.
If you must use AtomAction directly, take care to remember that they are Stateful (unlike most ViewActions) and the caller must call {@ #get()} to ensure that the action has completed.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an AtomAction.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Blocks until the atom has completed execution.
| |||||||||||
Blocks until the atom has completed execution with a configurable timeout.
| |||||||||||
Return a Future, which will be set and transformed from futureEval.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.support.test.espresso.ViewAction
| |||||||||||
Creates an AtomAction.
| atom | the atom to execute |
|---|---|
| window | (optional/nullable) the window context to execute on. |
| element | (optional/nullable) the element to execute on. |
Blocks until the atom has completed execution.
| ExecutionException | |
|---|---|
| InterruptedException |
Blocks until the atom has completed execution with a configurable timeout.
| ExecutionException | |
|---|---|
| InterruptedException | |
| TimeoutException |
Return a Future, which will be set and transformed from futureEval. Espresso's public API cannot have guava types in its method signatures, so return Future instead of ListenableFuture or SettableFuture.