Selenium WebDriver 4

Verify the traveller form validation

Medium50 pts
  • Form validation
  • Dropdowns
  • Negative testing
  • Multiple assertions
Practice app · SkyWay

An online travel agency: airport autocomplete, a custom calendar, travellers popover, timed search results with sorting and filters, a fare modal, passenger validation, a seat map, card payment inside an iframe, and a manage-booking page with native confirm and prompt dialogs.

Test URL
/lab/selenium-skyway-passenger-validation

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

Objective

Submit the traveller details form with an underage adult, a broken email and a short phone number, and verify each validation message.

Your Task

  1. 1Open TEST_URL. A booking for 1 adult is already at the traveller details step.
  2. 2Fill #pax-1-first with “Asha”, #pax-1-last with “Verma”, #pax-1-age with “8” and choose Female in #pax-1-gender.
  3. 3Fill #contact-email with “asha.verma@” and #contact-phone with “98765”.
  4. 4Click #passengers-continue.
  5. 5Assert #pax-1-age-error, #contact-email-error and #contact-phone-error show the expected messages, #passenger-errors reports 3 errors, and no error is shown for the first name.

Validation Checks

  • The age error says adults must be 12 years or older.
  • The email error says “Enter a valid email address”.
  • The phone error asks for a 10-digit mobile number.
  • The summary reports 3 errors and the valid first name has no error.
  • The test makes at least three assertions.

Fixtures

Airports
BLR Bengaluru · DEL New Delhi · BOM Mumbai · MAA Chennai · GOI Goa · HYD Hyderabad
Today
Tuesday, 10 November 2026 (earlier dates are disabled)
Test card
4111 1111 1111 1111 · expiry 12/29 · CVV 123
Declined card
4000 0000 0000 0002
Existing booking
PNR SW7K2Q · last name Verma
Travellers
Asha Verma (34, Female) · Rohan Verma (36, Male) · asha.verma@example.com · 9876543210

Cloud Execution & Grading Guide

This Medium Selenium Challenges exercise runs inside TargetQA's managed cloud sandbox using Selenium WebDriver 4 (Java, Python, C#). Every submission runs inside an isolated headless Chromium container with pre-synced drivers, capturing live console logs, DOM assertions, and a 720p step-by-step video replay.

  • Supported stacks: Java (Selenium 4 + JUnit 5) · Python (Selenium 4 + pytest) · C# (Selenium 4 + NUnit)
  • Zero local setup: Use the pre-declared TEST_URL variable so your script targets the live SkyWay sandbox reliably without hardcoding hosts.
  • Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 5 acceptance checks and earn 50 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · SkyWay