Alert

import {Alert} from 'cabbie-async';

Methods

accept(): Promise<void>

Accepts the currently displayed alert dialog. Usually, this is equivalent to clicking on the 'OK' button in the dialog.

dismiss(): Promise<void>

Dismisses the currently displayed alert dialog. For confirm() and prompt() dialogs, this is equivalent to clicking the 'Cancel' button. For alert() dialogs, this is equivalent to clicking the 'OK' button.

Note: Never use this with an alert. Use accept() instead.

getText(): Promise<string>

Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog

setText(text): Promise<void>

text
string

Sends keystrokes to a JavaScript prompt() dialog