Change sizes and quantities in the bag
Medium50 pts~2 min
- Native dropdowns
- Scoped locators
- Recalculated totals
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.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
The bag already holds three lines. Change the wrap dress to size M, raise the crop top to 3, remove the T-shirts and verify the recalculated totals.
Your task
- 1Open TEST_URL and open the bag (#nav-bag).
- 2In the Floral Wrap Midi Dress row (data-line-id="line-1") choose M in the size dropdown (#line-size-line-1).
- 3In the Square Neck Crop Top row (data-line-id="line-3") click + (.qty-increase) until the quantity is 3.
- 4Remove the Essential Crew Neck T-Shirt row (data-line-id="line-2") with its × button (.remove-line).
- 5Assert 2 rows remain, #bag-heading mentions 4 items and #bag-total shows ₹2,996.
Acceptance criteria
- The dress is size M and the crop top quantity is 3.
- The T-shirt line is removed.
- The bag shows 4 items and a total of ₹2,996.
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
Selenium WebDriver 4 · Selenium Challenges · StyleKart