Selenium WebDriver 4

Compare two phones and verify a specification cell

Medium55 pts~2 min
  • Tables
  • Checkboxes
  • Data attributes
  • Cell lookup
Practice app · FlipMart

An Indian electronics megastore: mobile-number + OTP login with an on-page SMS, an Electronics hover mega-menu, search autocomplete, listings with a price slider, brand filters, sort tabs and infinite scroll, a 3-product compare table, product pages with offers, pincode checks and rating breakdowns, a flash sale countdown, a login-gated wishlist, and a cart with UPI, card and Cash on Delivery checkout.

Test URL
/lab/selenium-flipmart-compare-phones

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

Objective

Add two phones to the compare tray, open the comparison, and read the Battery row of the specification table for each phone.

Your task

  1. 1Open TEST_URL and open the Mobiles listing.
  2. 2Tick “Add to Compare” for Vexa Note 13 Pro 5G (#compare-vexa-note-13-pro) and Kairo 12 5G (#compare-kairo-12).
  3. 3Assert that the compare tray (#compare-tray) shows COMPARE (2), then click Compare (#compare-now).
  4. 4In #compare-table, find the Battery row and assert that the Kairo 12 5G cell reads “6000 mAh” and the Vexa Note 13 Pro 5G cell reads “5100 mAh”.

Acceptance criteria

  • The comparison page shows exactly 2 products.
  • The Battery cell for Kairo 12 5G is 6000 mAh.
  • The Battery cell for Vexa Note 13 Pro 5G is 5100 mAh.
  • The test makes at least two assertions.

Fixtures

Mobile number
9876543210
OTP
482913 (also shown in the on-page SMS)
Account name
Rohan Mehta
UPI ID
rohan@fmupi
Saved address
221B, 12th Main Road, Indiranagar, Bengaluru - 560038
Pincodes
560001 / 560038 Bengaluru · 110001 New Delhi · 400001 Mumbai · 600001 Chennai · 700001 Kolkata · 500001 Hyderabad
Today
Tuesday, 10 November 2026

Selenium WebDriver 4 · Selenium Challenges · FlipMart