Selenium WebDriver 4

Fill and submit a login form

Medium70 pts~25 min
  • Forms
  • Authentication
Practice app · Acme Ops

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

Test URL
/lab/selenium-fill-and-submit-a-login-form

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

Objective

Sign in with the fixture account and verify the authenticated dashboard.

Your task

  1. 1Open TEST_URL.
  2. 2Type “qa@target.dev” into #username and “Test@123” into #password.
  3. 3Check #remember-me and click #login-button.
  4. 4Assert the URL ends with “#/dashboard”, the title is “Dashboard | Acme Ops” and #welcome-message reads “Welcome back, QA Tester”.

Acceptance criteria

  • #dashboard is visible
  • The final URL contains “#/dashboard”
  • #welcome-message greets QA Tester
  • At least 2 assertions pass

Fixtures

username
qa@target.dev
password
Test@123

Selenium WebDriver 4 · Selenium · Forms & inputs