Selenium WebDriver 4

Search for a product and verify the results

Easy30 pts
  • Search
  • Collections of elements
  • Assertions
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-search-results

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

Objective

Search ShopZone for “wireless headphones” and verify both the result summary and the number of result cards.

Your Task

  1. 1Open TEST_URL.
  2. 2Type “wireless headphones” into #search-input and submit (press Enter or click #search-button).
  3. 3Wait for #results-summary to mention the search term.
  4. 4Assert that exactly 3 product cards are shown and that every title contains “Wireless Headphones”.

Validation Checks

  • The summary reads 3 results for "wireless headphones".
  • Exactly 3 product cards are shown.
  • The test asserts the results.

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 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 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 30 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · ShopZone