Automation lab Aú CRUD Operations (CRUD_OPERATIONS)

Lab 023: Delete record with confirmation dialog

Practice delete record with confirmation dialog in a real web app context as part of the CRUD Operations module.

intermediate intermediate
intermediate

Objectives

Use for test scripts
  • Understand the purpose and business flow of delete record with confirmation dialog.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

CRUD Operations • web-ui • intermediate • active

Delete record with confirmation dialog

Practice guarded deletion with a confirm/cancel path.

Reading and understanding requirements Choosing stable locators Designing assertions based on business rules

Learning objectives

  • Confirm destructive actions with modal UX.
  • Validate delete button disables after action.
  • Assert row removal and status messaging.

Steps

  1. Click delete to open confirmation.
  2. Cancel keeps row intact.
  3. Confirm removes row and updates status.
  4. Attempt second delete to confirm idempotence.

Practice sandbox

Delete a record with confirmation.

Destructive
Name Email Actions
Demo User demo@example.com

Record present

Assertions to practice

  • Modal appears with proper message and buttons.
  • Cancel preserves row; confirm removes row.
  • Status text flips to "Record deleted".