public
final
class
DriverAtoms
extends Object
| java.lang.Object | |
| ↳ | android.support.test.espresso.web.webdriver.DriverAtoms |
A collection of Javascript Atoms from the WebDriver project.
Public methods | |
|---|---|
static
Atom<Evaluation>
|
clearElement()
Clears content from an editable element. |
static
Atom<ElementReference>
|
findElement(Locator locator, String value)
Finds an element using the provided locator strategy. |
static
Atom<List<ElementReference>>
|
findMultipleElements(Locator locator, String value)
Finds multiple elements given a locator strategy. |
static
Atom<String>
|
getText()
Returns the visible text beneath a given DOM element. |
static
Atom<ElementReference>
|
selectActiveElement()
Finds the currently active element in the document. |
static
Atom<WindowReference>
|
selectFrameByIdOrName(String idOrName)
Selects a subframe of the current window by it's name or id. |
static
Atom<WindowReference>
|
selectFrameByIdOrName(String idOrName, WindowReference root)
Selects a subframe of the given window by it's name or id. |
static
Atom<WindowReference>
|
selectFrameByIndex(int index)
Selects a subframe of the currently selected window by it's index. |
static
Atom<WindowReference>
|
selectFrameByIndex(int index, WindowReference root)
Selects a subframe of the given window by it's index. |
static
Atom<Evaluation>
|
webClick()
Simulates the javascript events to click on a particular element. |
static
Atom<Evaluation>
|
webKeys(String text)
Simulates javascript key events sent to a certain element. |
Inherited methods | |
|---|---|
java.lang.Object
| |
Atom<Evaluation> clearElement ()
Clears content from an editable element.
| Returns | |
|---|---|
Atom<Evaluation> |
|
Atom<ElementReference> findElement (Locator locator, String value)
Finds an element using the provided locator strategy.
| Parameters | |
|---|---|
locator |
Locator
|
value |
String
|
| Returns | |
|---|---|
Atom<ElementReference> |
|
Atom<List<ElementReference>> findMultipleElements (Locator locator, String value)
Finds multiple elements given a locator strategy.
| Parameters | |
|---|---|
locator |
Locator
|
value |
String
|
| Returns | |
|---|---|
Atom<List<ElementReference>> |
|
Atom<String> getText ()
Returns the visible text beneath a given DOM element.
| Returns | |
|---|---|
Atom<String> |
|
Atom<ElementReference> selectActiveElement ()
Finds the currently active element in the document.
| Returns | |
|---|---|
Atom<ElementReference> |
|
Atom<WindowReference> selectFrameByIdOrName (String idOrName)
Selects a subframe of the current window by it's name or id.
| Parameters | |
|---|---|
idOrName |
String
|
| Returns | |
|---|---|
Atom<WindowReference> |
|
Atom<WindowReference> selectFrameByIdOrName (String idOrName, WindowReference root)
Selects a subframe of the given window by it's name or id.
| Parameters | |
|---|---|
idOrName |
String
|
root |
WindowReference
|
| Returns | |
|---|---|
Atom<WindowReference> |
|
Atom<WindowReference> selectFrameByIndex (int index)
Selects a subframe of the currently selected window by it's index.
| Parameters | |
|---|---|
index |
int
|
| Returns | |
|---|---|
Atom<WindowReference> |
|
Atom<WindowReference> selectFrameByIndex (int index, WindowReference root)
Selects a subframe of the given window by it's index.
| Parameters | |
|---|---|
index |
int
|
root |
WindowReference
|
| Returns | |
|---|---|
Atom<WindowReference> |
|
Atom<Evaluation> webClick ()
Simulates the javascript events to click on a particular element.
| Returns | |
|---|---|
Atom<Evaluation> |
|
Atom<Evaluation> webKeys (String text)
Simulates javascript key events sent to a certain element.
| Parameters | |
|---|---|
text |
String
|
| Returns | |
|---|---|
Atom<Evaluation> |
|