Log in from the wishlist prompt to save a stay
- Login modals
- Forms
- State changes
A home-sharing marketplace: destination autocomplete, a two-month date-range calendar, a guests popover with steppers, results with a list/map toggle and a filters modal, listing pages with a photo gallery, a reserve card with a price breakdown, host profiles in a new tab, a wishlist that needs sign-in and a message-host form.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Saving a stay requires an account. Click Save on Gion Machiya Townhouse, log in through the dialog that appears, and verify the stay is saved to the wishlist.
Your Task
- 1Open TEST_URL and open Gion Machiya Townhouse from Featured stays ([data-testid="listing-card"][data-listing-id="kyoto-machiya"] .listing-title).
- 2Click Save (#wishlist-button) and wait for the dialog #signin-modal (“Log in to save to your wishlist”).
- 3Enter guest@staynest.test in #signin-email and Nest@2026 in #signin-password, then click Continue (#signin-submit).
- 4Assert the dialog closes, #wishlist-button reads “Saved”, the header badge #wishlist-count shows 1 and #nav-account shows Jordan.
Validation Checks
- The log-in dialog is closed.
- The stay is saved and the wishlist badge shows 1.
- The header shows the signed-in guest, Jordan.
- The test makes at least two assertions.
Fixtures
- guest@staynest.test
- Password
- Nest@2026
- Account name
- Jordan Lee
- Today
- Tuesday, 10 November 2026 (earlier days are disabled)
- Destinations
- Goa · Lisbon · Kyoto · Banff · Cape Town
- Service fee
- 14% of the nightly subtotal
- Guest limits
- Adults 1–16 (adults + children ≤ 16) · infants up to 5 · pets up to 5
- Host verification code
- Shown only on the host profile tab
Cloud Execution & Grading Guide
This Easy 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_URLvariable so your script targets the live StayNest sandbox reliably without hardcoding hosts. - Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 4 acceptance checks and earn 30 points.
Selenium WebDriver 4 · Selenium Challenges Practice Track · StayNest