Selenium WebDriver 4

Verify the reserve card price breakdown

Medium55 pts
  • Calculated values
  • Scoped locators
  • Assertions
Practice app · StayNest

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.

Test URL
/lab/selenium-staynest-reserve-price-breakdown

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

Objective

Pick a 4-night stay at Casa Azulejo in the reserve card and verify every line of the price breakdown: nights × nightly price, cleaning fee, 14% service fee and the total.

Your Task

  1. 1Open TEST_URL and open Casa Azulejo · Alfama Townhouse ($185.00 a night) from Featured stays.
  2. 2In the reserve card click Check-in (#reserve-checkin-field); in #reserve-date-picker choose “Choose Thursday, 12 November 2026” and then “Choose Monday, 16 November 2026”.
  3. 3Assert #price-nights reads “$185.00 x 4 nights” and #price-subtotal is $740.00.
  4. 4Assert the cleaning fee #price-cleaning is $60.00 and the service fee #price-service is $103.60.
  5. 5Assert #price-total is $903.60.

Validation Checks

  • The breakdown lists 4 nights at $185.00 ($740.00).
  • Cleaning is $60.00 and the service fee $103.60.
  • The total is $903.60.
  • The test makes at least three assertions.

Fixtures

Email
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_URL variable 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 55 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · StayNest