DriverAtoms


public final class DriverAtoms


A collection of Javascript Atoms from the WebDriver project.

Summary

Public methods

static Atom<Evaluation>

Clears content from an editable element.

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

Finds an element using the provided locatorType strategy.

static Atom<List<ElementReference>>

Finds multiple elements given a locator strategy.

static Atom<String>

Returns the visible text beneath a given DOM element.

static Atom<ElementReference>

Finds the currently active element in the document.

static Atom<WindowReference>

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

static Atom<WindowReference>

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>

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

static Atom<Evaluation>

Simulates the javascript events to click on a particular element.

static Atom<Evaluation>

Simulates javascript key events sent to a certain element.

static Atom<Boolean>

Returns true if the desired element is in view after scrolling.

Public methods

clearElement

public static Atom<EvaluationclearElement()

Clears content from an editable element.

findElement

public static Atom<ElementReferencefindElement(Locator locator, String value)

Finds an element using the provided locatorType strategy.

findMultipleElements

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

Finds multiple elements given a locator strategy.

getText

public static Atom<StringgetText()

Returns the visible text beneath a given DOM element.

selectActiveElement

public static Atom<ElementReferenceselectActiveElement()

Finds the currently active element in the document.

selectFrameByIdOrName

public static Atom<WindowReferenceselectFrameByIdOrName(String idOrName)

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

selectFrameByIdOrName

public static Atom<WindowReferenceselectFrameByIdOrName(String idOrName, WindowReference root)

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

selectFrameByIndex

public static Atom<WindowReferenceselectFrameByIndex(int index)

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

selectFrameByIndex

public static Atom<WindowReferenceselectFrameByIndex(int index, WindowReference root)

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

webClick

public static Atom<EvaluationwebClick()

Simulates the javascript events to click on a particular element.

webKeys

public static Atom<EvaluationwebKeys(String text)

Simulates javascript key events sent to a certain element.

webScrollIntoView

public static Atom<BooleanwebScrollIntoView()

Returns true if the desired element is in view after scrolling.