Selenium WebDriver 4

Click a button and verify navigation

Easy30 pts~12 min
  • Click
  • Navigation
Practice app · Profile Settings

A settings page for clicking, typing, reading text/attributes/CSS and element state.

Test URL
/lab/qa-automation-click-a-button-and-verify-navigation

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

Objective

Click a button that changes the route and verify both the URL and the new page.

Your task

  1. 1Open TEST_URL.
  2. 2Click #go-to-security.
  3. 3Assert the URL ends with “#/security”.
  4. 4Assert #security-heading reads “Security settings”.

Acceptance criteria

  • The button is clicked
  • The final URL contains “#/security”
  • #security-heading reads “Security settings”
  • At least 2 assertions pass

Selenium WebDriver 4 · QA Automation · Interactions