Selenium WebDriver 4

Login with valid credentials

Medium80 pts~25 min
  • Locators
  • Explicit waits
  • Assertions
Practice app · Acme Ops

A sign-in page with field validation and an authenticated dashboard.

Test URL
/lab/valid-login

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

Objective

Automate the complete sign-in flow with valid credentials and verify the authenticated dashboard.

Your task

  1. 1Open TEST_URL (the Acme Ops sign-in page).
  2. 2Type qa@target.dev into #username and Test@123 into #password, then click #login-button.
  3. 3Wait explicitly for #dashboard to be visible.
  4. 4Assert #welcome-message reads "Welcome back, QA Tester", the URL contains #/dashboard and the title contains "Dashboard".

Acceptance criteria

  • The dashboard is visible
  • The welcome message names QA Tester
  • URL and title reflect the dashboard
  • At least 2 assertions pass

Constraints

  • Do not use fixed sleeps.

Fixtures

username
qa@target.dev
password
Test@123

Selenium WebDriver 4 · Selenium · Featured challenges