Automation lab Aú State & Session Management (STATE_SESSION)

Lab 049: Undo last user action

Practice undo last user action in a real web app context as part of the State & Session Management module.

intermediate intermediate
intermediate

Objectives

Use for test scripts
  • Understand the purpose and business flow of undo last user action.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

State & Session / state-session / intermediate / active

Undo last user action

Perform actions and undo the most recent change.

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

Learning objectives

  • Track action history.
  • Undo last action reliably.
  • Reflect history in UI and status.

Steps

  1. Add items to the list.
  2. Undo to remove most recent item.
  3. Validate status and remaining items.

Practice sandbox

Add/undo actions.

    No actions yet

    Assertions to practice

    • Undo removes last-added item.
    • Status shows last action and remaining count.
    • Undo disabled when no history.