Selenium WebDriver 4

Verify the traveller form validation

Medium50 pts~2 min
  • 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.

Acceptance criteria

  • 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

Selenium WebDriver 4 · Selenium Challenges · SkyWay