Class: AriaDriver

AriaDriver(optionsopt)

An interface for interacting with a web page using the design patterns and widgets defined in the WAI-ARIA Authoring Practices Guide.

Constructor

new AriaDriver(optionsopt)

Parameters:
Name Type Attributes Description
options object <optional>
Properties
Name Type Attributes Description
url string <optional>
location of a running WebDriver server
patience number <optional>
number of milliseconds to wait for expected UI events before reporting a timeout error (default: 1000).
Source:
See:

Extends

Members

(readonly) patience :number

The number of milliseconds to wait for expected UI events before reporting a timeout error. Set during object construction.
Type:
  • number
Source:

Methods

closeDialog()

Close the currently-active dialog
Source:
See:
Throws:
When there is no active dialog

get(url)

Parameters:
Name Type Description
url string the desired location
Source:
See:

openDialog(selector)

Open a dialog.
Parameters:
Name Type Description
selector string a CSS selector describing the element to use in order to open the dialog.
Source:
See:

openPopup(selector)

Parameters:
Name Type Description
selector string a CSS selector describing the element to use in order to open the popup.
Source:
See:
Throws:

pushButton(selector)

Operate a button. This method waits for "toggle" buttons to change state.
Parameters:
Name Type Description
selector string a CSS selector describing the element to use in order to operate the button.
Source:
Throws:

quit()

Terminates the browser session. After calling quit, this instance will be invalidated and may no longer be used to issue commands against the browser.
Source:

(async) use(selector)

Use the specified element: bring the element into focus and press the "enter" key.
Parameters:
Name Type Description
selector string CSS selector describing an element on the page
Source:
Throws:
  • When the `aria-hidden` attribute of the target element is set to `true`
  • When the target element is not reported as the document's activeElement following interaction.