onDialog property
Emitted when a JavaScript dialog appears, such as alert
, prompt
,
confirm
or beforeunload
. Puppeteer can respond to the dialog via
Dialog.accept or Dialog.dismiss methods.
Implementation
Stream<Dialog> get onDialog => _onDialogController.stream;