Form validation
Two-step form with conditional phone field for India and optional notes length rule.
Open editorial guide: form validation practice
Challenge mode: append ?challenge=1 to this URL for harder selectors / no helper test ids where noted.
Interactive demo
Step 1 of 2
Practice ideas
Manual testing
- Step 1 validation
- IN + invalid phone
- notes too short when provided
Automation
- Multi-step flow with explicit waits between steps
Locator hints (beginner)
- [data-testid="pg-form-next"]
- [data-testid="pg-form-country"]