module Playwright::Dialog

Overview

Dialog objects are dispatched by page via the page.on('dialog') event. An example of using Dialog class:

Defined in:

playwright/dialog.cr

Instance Method Summary

Instance Method Detail

abstract def accept(prompt_text : String?) : Nil #

Returns when the dialog has been accepted.


[View source]
def accept : Nil #

[View source]
abstract def default_value : String #

If dialog is prompt, returns default prompt value. Otherwise, returns empty string.


[View source]
abstract def dismiss : Nil #

Returns when the dialog has been dismissed.


[View source]
abstract def message : String #

A message displayed in the dialog.


[View source]
abstract def type : Type #

Returns dialog's type, can be one of alert, beforeunload, confirm or prompt.


[View source]