Alerts
Native alert(), confirm(), and prompt() dialogs
aren't part of the page's DOM, so they need a different approach than a normal
locator. Each card has two kinds of target icon — one on the button that
triggers the dialog (a normal locator), and one or more labels
showing how to handle the dialog itself once it's open.
JS Alert
Not triggered yet
How to handle this alert
JS Confirm
Not triggered yet
Accept (OK)
Dismiss (Cancel)
JS Prompt
Not triggered yet
Type text and accept
Dismiss (Cancel)
Delayed Alert
Not triggered yet
How to wait for this alert