Selenium WebDriver 4

Configure a headless browser run

Easy30 pts~12 min
  • Headless
  • Browser options
Practice app · TargetQA Practice Store

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

Test URL
/lab/selenium-configure-a-headless-browser-run

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

Objective

Run the browser without a visible window and prove the page still renders.

Your task

  1. 1Create browser options and enable headless mode (Chrome: --headless=new; Firefox: -headless).
  2. 2Start the driver with those options and open TEST_URL.
  3. 3Assert #page-title is displayed and reads “Welcome to the practice store”.

Acceptance criteria

  • Headless mode is configured
  • #page-title is visible
  • At least 1 assertion passes

Selenium WebDriver 4 · Selenium · Setup & first script