Alert
import {Alert} from 'cabbie-sync';
Methods
accept(): void
Accepts the currently displayed alert dialog. Usually, this is equivalent to clicking on the 'OK' button in the dialog.
dismiss(): 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(): string
Gets the text of the currently displayed JavaScript alert(), confirm(), or prompt() dialog
setText(text): void
- text
- string
Sends keystrokes to a JavaScript prompt() dialog