Selenium WebDriver 4

Build a wishlist and verify the header count

Easy30 pts
  • Scoped locators
  • Toggle buttons
  • Explicit waits
  • Navigation
Practice app · StyleKart

A fashion store with Men, Women and Kids listings: multi-select filters with removable chips, a custom sort listbox, load-more paging, product pages with colour swatches, sizes, a size-chart modal and a hover gallery, a wishlist, a bag with per-line sizes and a coupons modal, sign-up validation and checkout.

Test URL
/lab/selenium-stylekart-wishlist-count

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

Objective

Heart three Women products (one is behind “Load more products”), un-heart one of them, then open the wishlist and verify the header badge and the wishlist page agree on two items.

Your Task

  1. 1Open TEST_URL and click Women (#nav-women).
  2. 2Click the heart (.wishlist-toggle) on the Floral Wrap Midi Dress (w-wrap-dress) and the Square Neck Crop Top (w-crop-top) cards.
  3. 3Click Load more products (#load-more), wait for the Tailored Single-Breasted Blazer card (w-blazer) and heart it.
  4. 4Click the crop top's heart again to remove it, and assert #wishlist-count shows 2.
  5. 5Open the wishlist (#nav-wishlist) and assert exactly 2 [data-testid="wishlist-item"] entries: the dress and the blazer.

Validation Checks

  • The header badge shows 2.
  • The wishlist page lists the dress and the blazer only.
  • The test makes at least two assertions.

Fixtures

Coupons
STYLE20 (20% off bags of ₹1,999 or more) · FIRST100 (₹100 off)
Valid mobile
10 digits starting with 6, 7, 8 or 9, e.g. 9123456780
Password rules
8+ characters with an uppercase letter, a number and a special character, e.g. Style@2026
Seeded bag
Floral Wrap Midi Dress (Pink, S) ×1 · Essential Crew Neck T-Shirt (Black, M) ×2 · Square Neck Crop Top (White, S) ×1
Delivery address
Rohan Mehta · 9876543210 · 400001 · Flat 12, Sea View Apartments · Mumbai · Maharashtra

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_URL variable so your script targets the live StyleKart sandbox reliably without hardcoding hosts.
  • Automated grading: Click Run to inspect step logs and behavior, then click Submit to validate all 3 acceptance checks and earn 30 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · StyleKart