Selenium WebDriver 4

Sign in with a two-step login form

Easy30 pts~2 min
  • Locators
  • Multi-step forms
  • Explicit waits
  • 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-signin-two-step

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

Objective

Sign in to ShopZone through its two-step login (email first, then password) and verify the header greets the signed-in customer.

Your task

  1. 1Open TEST_URL and click the “Hello, sign in” link (#nav-account).
  2. 2Enter buyer@shopzone.test in #signin-email and click Continue (#signin-continue).
  3. 3Wait for the password step, enter Shop@123 in #signin-password and click Sign in (#signin-submit).
  4. 4Assert that #nav-account now reads “Hello, Asha” and that you are back on the home page.

Acceptance criteria

  • The header shows “Hello, Asha”.
  • The browser ends on the ShopZone home page.
  • The test asserts the signed-in state.

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

Selenium WebDriver 4 · Selenium Challenges · ShopZone