DriverAtoms


class DriverAtoms


A collection of Javascript Atoms from the WebDriver project.

Summary

Public functions

java-static Atom<Evaluation!>!

Clears content from an editable element.

java-static Atom<ElementReference!>!
findElement(locator: Locator!, value: String!)

Finds an element using the provided locatorType strategy.

java-static Atom<(Mutable)List<ElementReference!>!>!
findMultipleElements(locator: Locator!, value: String!)

Finds multiple elements given a locator strategy.

java-static Atom<String!>!

Returns the visible text beneath a given DOM element.

java-static Atom<ElementReference!>!

Finds the currently active element in the document.

java-static Atom<WindowReference!>!

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

java-static Atom<WindowReference!>!

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

java-static Atom<WindowReference!>!

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

java-static Atom<WindowReference!>!

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

java-static Atom<Evaluation!>!

Simulates the javascript events to click on a particular element.

java-static Atom<Evaluation!>!
webKeys(text: String!)

Simulates javascript key events sent to a certain element.

java-static Atom<Boolean!>!

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

Public functions

clearElement

java-static fun clearElement(): Atom<Evaluation!>!

Clears content from an editable element.

findElement

java-static fun findElement(locator: Locator!, value: String!): Atom<ElementReference!>!

Finds an element using the provided locatorType strategy.

findMultipleElements

java-static fun findMultipleElements(locator: Locator!, value: String!): Atom<(Mutable)List<ElementReference!>!>!

Finds multiple elements given a locator strategy.

getText

java-static fun getText(): Atom<String!>!

Returns the visible text beneath a given DOM element.

selectActiveElement

java-static fun selectActiveElement(): Atom<ElementReference!>!

Finds the currently active element in the document.

selectFrameByIdOrName

java-static fun selectFrameByIdOrName(idOrName: String!): Atom<WindowReference!>!

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

selectFrameByIdOrName

java-static fun selectFrameByIdOrName(idOrName: String!, root: WindowReference!): Atom<WindowReference!>!

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

selectFrameByIndex

java-static fun selectFrameByIndex(index: Int): Atom<WindowReference!>!

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

selectFrameByIndex

java-static fun selectFrameByIndex(index: Int, root: WindowReference!): Atom<WindowReference!>!

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

webClick

java-static fun webClick(): Atom<Evaluation!>!

Simulates the javascript events to click on a particular element.

webKeys

java-static fun webKeys(text: String!): Atom<Evaluation!>!

Simulates javascript key events sent to a certain element.

webScrollIntoView

java-static fun webScrollIntoView(): Atom<Boolean!>!

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