Read the current URL and assert it
Easy30 pts~12 min
- Current URL
- Navigation
Practice app · TargetQA Practice Store
A small storefront landing page for browser setup, navigation, titles, URLs and screenshots.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Navigate inside the app and assert the browser’s current URL reflects the new route.
Your task
- 1Open TEST_URL and assert the current URL starts with TEST_URL.
- 2Click the “Products” link
#nav-products. - 3Assert the current URL ends with “#/products”.
- 4Assert
#current-routeshows “/products”.
Acceptance criteria
- The test reads the current URL
- The final URL contains “#/products”
#current-routeshows “/products”- At least 2 assertions pass
Selenium WebDriver 4 · Selenium · Setup & first script