Hound.Helpers.Dialog

Provides functions to handle Javascript dialogs alert(), prompt() and confirm().

Summary

accept_dialog()

Accepts javascript dialog

dialog_text()

Gets text of a javascript alert(), confirm() or prompt()

dismiss_dialog()

Dismiss a javascript dialog

input_into_prompt(input)

Inputs text to a javascript prompt()

Functions

accept_dialog()

Specs:

  • accept_dialog :: :ok

Accepts javascript dialog.


accept_dialog()


dialog_text()

Specs:

Gets text of a javascript alert(), confirm() or prompt().


dialog_text()


dismiss_dialog()

Specs:

  • dismiss_dialog :: :ok

Dismiss a javascript dialog.


dismiss_dialog()


input_into_prompt(input)

Specs:

Inputs text to a javascript prompt().


input_into_prompt("John Doe")