Event descriptions shared by waits and listeners.
Constructors accept an optional unary predicate. A false or nil result skips the event. Predicates inspect event metadata; use ordinary assertions on the awaited value to check its contents.
Download events support both backends. Other events require Playwright.
Request and response registrations accept scope: :page (the default) or
scope: :context. Page events observe the context; all other events observe
the page selected when registering.
Summary
Functions
Describes a dialog event, optionally filtered by a unary predicate.
Describes a download event, optionally filtered by a unary predicate.
Describes a file_chooser event, optionally filtered by a unary predicate.
Describes a frame_navigated event, optionally filtered by a unary predicate.
Describes a page event, optionally filtered by a unary predicate.
Describes a popup event, optionally filtered by a unary predicate.
Describes a request event, optionally filtered by a unary predicate.
Describes a response event, optionally filtered by a unary predicate.
Types
@type option() :: {:timeout, non_neg_integer()} | {:scope, :page | :context}
@type type() ::
:download
| :popup
| :page
| :frame_navigated
| :dialog
| :file_chooser
| :request
| :response
Functions
Describes a dialog event, optionally filtered by a unary predicate.
Describes a download event, optionally filtered by a unary predicate.
Describes a file_chooser event, optionally filtered by a unary predicate.
Describes a page event, optionally filtered by a unary predicate.
Describes a popup event, optionally filtered by a unary predicate.
Describes a request event, optionally filtered by a unary predicate.
Describes a response event, optionally filtered by a unary predicate.