module

Playwright::Dialog

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

Instance methods

accept(prompt_text : String | Nil) : Nil

Returns when the dialog has been accepted.

Source
accept
Source
default_value

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

Source
dismiss

Returns when the dialog has been dismissed.

Source
message

A message displayed in the dialog.

Source
type

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

Source

Nested types