Test the limits of the guest steppers
- Steppers
- Boundary values
- Disabled state
- Loops
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
Drive the guests popover to its limits: at least one adult, no more than 16 adults and children together, and at most 5 infants, and verify the steppers and the summary label.
Your Task
- 1Open TEST_URL and click Who (#guests-button) to open #guests-popover.
- 2Assert #adults-count is 1 and Decrease adults (#adults-decrease) is disabled.
- 3Click Increase children (#children-increase) twice.
- 4Click Increase adults (#adults-increase) until it becomes disabled; assert #adults-count is 14 and the note #guests-limit-note is shown.
- 5Click Increase infants (#infants-increase) until it becomes disabled and assert #infants-count is 5.
- 6Leave the popover open and assert #guests-summary reads “16 guests, 5 infants”.
Validation Checks
- Adults stop at 14 because adults and children together are capped at 16.
- Children are 2 and infants stop at 5.
- The limit note is shown and the summary reads “16 guests, 5 infants”.
- The test makes at least three 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 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_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 50 points.
Selenium WebDriver 4 · Selenium Challenges Practice Track · StayNest