Age Gate - Date of Birth Variant

← All Variants
Pattern Overview
Direct endpoint: /patterns/age-gate/dob
Medium Difficulty

What This Pattern Tests

Requires entering actual birthdate and calculates age. Tests scraper's ability to handle date inputs and age calculation logic.

How It Works

  • User must enter a date of birth in YYYY-MM-DD format
  • System calculates age based on entered date
  • Must be 18 or older to pass verification
  • Optionally remembers choice with cookie

Scraper Strategy

  • Locate date input field with ID "dob" or label "Date of Birth"
  • Enter a valid date at least 18 years ago
  • Test edge cases (exactly 18 years ago, under 18, invalid dates)
  • Submit form and verify cookie is set
Interactive Demo
Try the age verification below - the full-page gate will appear

Scroll down to see the full-page age gate in action

The gate will block all content until you verify your age
Enter Your Date of Birth
You must be 18 or older to access this content

We use this to verify you meet the minimum age requirement