Selenium WebDriver 4

Filter results by brand and sort by price

Medium50 pts
  • Checkboxes
  • Dropdowns
  • Sorting
  • Dynamic lists
Practice app · ShopZone

A full marketplace: two-step sign-in, search with filters and sorting, product pages with tabs, a cart with coupons, and checkout.

Test URL
/lab/selenium-shopzone-filter-and-sort

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

Objective

Search for laptops, keep only the Novabook brand, sort from low to high price, and verify the cheapest Novabook is listed first.

Your Task

  1. 1Open TEST_URL and search for “laptop”.
  2. 2Tick the Novabook brand filter (#brand-novabook).
  3. 3Choose “Price: Low to High” in #sort-select (value price-asc).
  4. 4Assert that 3 cards remain and the first card is the Novabook Air 13 Laptop at $549.00.

Validation Checks

  • Only the 3 Novabook laptops are shown.
  • Results are sorted by ascending price.
  • The first result is the Novabook Air 13 Laptop.

Fixtures

Email
buyer@shopzone.test
Password
Shop@123
Account name
Asha Verma
Coupon
SAVE10 (10% off the subtotal)
Pincodes
560001 Bengaluru · 110001 New Delhi · 400001 Mumbai · 600001 Chennai

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 ShopZone 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 50 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · ShopZone