Selenium WebDriver 4

Preserve form state across steps

Hard120 pts~45 min
  • Wizards
  • State
Practice app · Checkout Wizard

A three-step checkout wizard that keeps state between steps.

Test URL
/lab/qa-automation-preserve-form-state-across-steps

Your starter code already declares TEST_URL — never hardcode a host.

Objective

Move back and forth in the wizard and prove entered data is kept.

Your task

  1. 1Open TEST_URL; fill #shipping-name “Jane Doe”, #shipping-address “221B Baker Street”, #shipping-city “London” and continue.
  2. 2Select #shipping-express, click #back-button and assert all three shipping fields still hold their values.
  3. 3Continue twice to step 3 and assert #shipping-express choice appears in #review-summary as “Express ($15)”.
  4. 4Assert #review-summary contains “Jane Doe” and “London”.

Acceptance criteria

  • #step-indicator reads “Step 3 of 3”
  • #review-summary contains “Jane Doe”, “London” and “Express”
  • At least 4 assertions pass

Selenium WebDriver 4 · QA Automation · Forms & inputs