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.
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
- 1Open TEST_URL; fill
#shipping-name“Jane Doe”,#shipping-address“221B Baker Street”,#shipping-city“London” and continue. - 2Select
#shipping-express, click#back-buttonand assert all three shipping fields still hold their values. - 3Continue twice to step 3 and assert
#shipping-expresschoice appears in#review-summaryas “Express ($15)”. - 4Assert
#review-summarycontains “Jane Doe” and “London”.
Acceptance criteria
#step-indicatorreads “Step 3 of 3”#review-summarycontains “Jane Doe”, “London” and “Express”- At least 4 assertions pass
Selenium WebDriver 4 · Selenium · Forms & inputs