Selenium WebDriver 4

Send the e-ticket through a prompt dialog

Medium45 pts~2 min
  • Prompt dialogs
  • Dialog input
  • 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-email-eticket

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

Objective

On the booking page for SW7K2Q, click Email e-ticket, type a new email address into the native prompt, and verify the page confirms where the ticket was sent.

Your task

  1. 1Open TEST_URL. The booking page for PNR SW7K2Q is already open.
  2. 2Get ready to handle a prompt dialog, then click #email-ticket.
  3. 3Assert the prompt asks for an email address, type travel.desk@example.com into it and accept.
  4. 4Assert #manage-message reads “E-ticket sent to travel.desk@example.com” and the activity log (#booking-activity) records it.

Acceptance criteria

  • The prompt was answered with travel.desk@example.com and accepted.
  • The page confirms the e-ticket was sent to that address.
  • The test makes at least two 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