| java.lang.Object | |
| ↳ | androidx.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.
See also:
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Creates an AtomAction.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Blocks until the atom has completed execution with a configurable timeout.
| |||||||||||
Blocks until the atom has completed execution.
| |||||||||||
Return a Future, which will be set and transformed from futureEval.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
| |||||||||||
|
| |||||||||||
|
| |||||||||||
Creates an AtomAction.
| Parameters | |
|---|---|
atom |
Atom: the atom to execute |
window |
WindowReference: (optional/nullable) the window context to execute on. |
element |
ElementReference: (optional/nullable) the element to execute on.
|
Blocks until the atom has completed execution with a configurable timeout.
| Parameters | |
|---|---|
val |
long |
unit |
TimeUnit |
| Returns | |
|---|---|
E |
|
| Throws | |
|---|---|
ExecutionException |
|
InterruptedException |
|
TimeoutException |
|
Blocks until the atom has completed execution.
| Returns | |
|---|---|
E |
|
| Throws | |
|---|---|
ExecutionException |
|
InterruptedException |
|
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.
| Returns | |
|---|---|
Future<E> |
|
| Parameters | |
|---|---|
controller |
UiController |
view |
View |