Read the page title and assert it
Easy30 pts~12 min
- Page title
- Assertions
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
Read document.title through WebDriver and assert it exactly.
Your task
- 1Open TEST_URL.
- 2Read the title (getTitle(), driver.title, driver.Title).
- 3Assert it equals “TargetQA Practice Store”.
- 4Click
#nav-productsand assert the title is unchanged.
Acceptance criteria
- The test reads the page title
- The final page title contains “TargetQA Practice Store”
- At least 2 assertions pass
Selenium WebDriver 4 · QA Automation · Setup & first script