JS Alert
Trigger native browser alert() dialogs. Learn how to handle them in Selenium (switchTo().alert()), Playwright (page.on('dialog')), and Cypress (cy.on('window:alert')).
Your browser's native alert popup will appear. Click OK to dismiss it.
Simple Alert
Click the button to trigger a basic window.alert() with a static message.
Custom Alert Message
Delayed Alert (after 2 s)
Alert fires 2 seconds after clicking. Practice waiting for dialogs.