Web Automation Practice

Modals and Popups

Instructions: Your automation script should interact with the modal dialog.

  1. Click the "Show Modal" button to open the dialog.
  2. Verify that the modal is visible and contains the correct title.
  3. Click the "Close" button inside the modal to close it.
  4. Verify that the modal is no longer visible.

Validation: An output message will confirm when the modal has been successfully closed.

Output