public final class

DriverAtoms

extends Object
java.lang.Object
   ↳ android.support.test.espresso.web.webdriver.DriverAtoms

Class Overview

A collection of Javascript Atoms from the WebDriver project.

Summary

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, WindowReference root)
Selects a subframe of the given window by it's name or id.
static Atom<WindowReference> selectFrameByIdOrName(String idOrName)
Selects a subframe of the current window by it's name or id.
static Atom<WindowReference> selectFrameByIndex(int index, WindowReference root)
Selects a subframe of the given window by it's index.
static Atom<WindowReference> selectFrameByIndex(int index)
Selects a subframe of the currently selected 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.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static Atom<Evaluation> clearElement ()

Clears content from an editable element.

public static Atom<ElementReference> findElement (Locator locator, String value)

Finds an element using the provided locator strategy.

public static Atom<List<ElementReference>> findMultipleElements (Locator locator, String value)

Finds multiple elements given a locator strategy.

public static Atom<String> getText ()

Returns the visible text beneath a given DOM element.

public static Atom<ElementReference> selectActiveElement ()

Finds the currently active element in the document.

public static Atom<WindowReference> selectFrameByIdOrName (String idOrName, WindowReference root)

Selects a subframe of the given window by it's name or id.

public static Atom<WindowReference> selectFrameByIdOrName (String idOrName)

Selects a subframe of the current window by it's name or id.

public static Atom<WindowReference> selectFrameByIndex (int index, WindowReference root)

Selects a subframe of the given window by it's index.

public static Atom<WindowReference> selectFrameByIndex (int index)

Selects a subframe of the currently selected window by it's index.

public static Atom<Evaluation> webClick ()

Simulates the javascript events to click on a particular element.

public static Atom<Evaluation> webKeys (String text)

Simulates javascript key events sent to a certain element.