Selenium WebDriver 4

Complete a checkout with Cash on Delivery

Hard100 pts
  • End-to-end flows
  • Forms
  • Radio buttons
  • Page transitions
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-checkout-cod

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

Objective

Automate the full purchase journey: sign in, add the Aurora Desk Lamp to the cart, check out with a delivery address and Cash on Delivery, and verify the order confirmation.

Your Task

  1. 1Open TEST_URL and sign in as buyer@shopzone.test / Shop@123.
  2. 2Search for “desk lamp”, add the Aurora Desk Lamp to the cart and proceed to checkout from the cart.
  3. 3Fill the address: Asha Verma, 12 MG Road, Bengaluru, Karnataka, 560001, phone 9876543210.
  4. 4Choose Cash on Delivery (#pay-cod) and click Place your order (#place-order).
  5. 5Assert the confirmation page shows “Order placed, thank you!”, the payment method and the delivery city.

Validation Checks

  • The order confirmation is displayed with an order number (SZ-…).
  • The payment method is Cash on Delivery.
  • The shipping address contains Bengaluru.
  • The test makes at least two assertions along the journey.

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 Hard 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 4 acceptance checks and earn 100 points.

Selenium WebDriver 4 · Selenium Challenges Practice Track · ShopZone