Selenium WebDriver 4

Launch Chrome and open a URL

Easy30 pts~12 min
  • WebDriver session
  • Chrome
Practice app · TargetQA Practice Store

A small storefront landing page for browser setup, navigation, titles, URLs and screenshots.

Test URL
/lab/selenium-launch-chrome-and-open-a-url

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

Objective

Start a Chrome session, open the practice app and prove the page loaded by asserting its main heading.

Your task

  1. 1Create a Chrome driver (ChromeDriver, webdriver.Chrome() or a Builder for “chrome”).
  2. 2Open TEST_URL (declared in the starter) — never hardcode a host.
  3. 3Find #page-title and assert its text is “Welcome to the practice store”.
  4. 4Quit the driver in teardown.

Acceptance criteria

  • The test uses a Chrome driver
  • #page-title is visible on the practice app
  • At least 1 assertion passes

Selenium WebDriver 4 · Selenium · Setup & first script