Update quantities and remove an item from the cart
Medium50 pts
- Scoped locators
- Data attributes
- Recalculated totals
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.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
The cart already contains three products. Raise the desk lamp to 3 units, delete the mug, and verify the recalculated subtotal.
Your Task
- 1Open TEST_URL and open the cart (#nav-cart).
- 2In the Aurora Desk Lamp row (data-product-id="aurora-lamp") click + until the quantity is 3.
- 3Delete the Pixel Ceramic Mug row.
- 4Assert 2 rows remain and #cart-subtotal shows Subtotal (4 items): $143.49.
Validation Checks
- Two cart rows remain.
- The lamp quantity is 3.
- The subtotal is $143.49 for 4 items.
Fixtures
- 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_URLvariable 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