Automation lab Aú Error Handling & Resilience (ERROR_RESILIENCE)

Lab 056: Prevent double form submission

Practice prevent double form submission in a real web app context as part of the Error Handling & Resilience module.

advanced advanced
advanced

Objectives

Use for test scripts
  • Understand the purpose and business flow of prevent double form submission.
  • Design stable locators for key UI elements.
  • Automate user interactions and verify the resulting UI state.

Sandbox

Error Handling & Resilience / error-handling / advanced / active

Prevent double form submission

Disable submit while processing and show clear status.

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

Learning objectives

  • Disable submit after first click.
  • Re-enable after completion.
  • Expose status for automation.

Steps

  1. Click submit once.
  2. While processing, verify button disabled.
  3. After delay, button re-enables and status updates.
Idle

Assertions to practice

  • Submit disables immediately after click.
  • Status shows "Submitting..." during delay.
  • Button re-enabled and status "Submitted" after delay.