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.
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
- 1Open TEST_URL.
- 2Click
#go-to-security. - 3Assert the URL ends with “#/security”.
- 4Assert
#security-headingreads “Security settings”.
Acceptance criteria
- The button is clicked
- The final URL contains “#/security”
#security-headingreads “Security settings”- At least 2 assertions pass
Selenium WebDriver 4 · Selenium · Interactions