playwright-browser-handle-dialog

To accept or dismiss browser dialogs like alert/confirm/prompt, handle the dialog so automation can continue.