Selenium WebDriver 4

Launch Firefox and open a URL

Easy30 pts~12 min
  • Cross-browser
  • Firefox
Practice app · TargetQA Practice Store

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

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

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

Objective

Run the same first check in Firefox instead of Chrome.

Your task

  1. 1Replace the Chrome driver with a Firefox driver (FirefoxDriver, webdriver.Firefox() or a Builder for “firefox”).
  2. 2Open TEST_URL.
  3. 3Assert the page title is “TargetQA Practice Store”.
  4. 4Assert #page-title is displayed.

Acceptance criteria

  • The test uses a Firefox driver
  • The page title contains “TargetQA Practice Store”
  • At least 1 assertion passes

Selenium WebDriver 4 · Selenium · Setup & first script