Selenium WebDriver 4

Add browser launch options and arguments

Medium70 pts~25 min
  • Browser options
  • Launch arguments
Practice app · TargetQA Practice Store

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

Test URL
/lab/selenium-add-browser-launch-options-and-arguments

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

Objective

Start the browser with explicit command-line arguments through an options object.

Your task

  1. 1Create browser options (ChromeOptions, chrome.Options, FirefoxOptions).
  2. 2Add the arguments --window-size=1366,768 and --disable-notifications.
  3. 3Start the driver with the options and open TEST_URL.
  4. 4Assert the title is “TargetQA Practice Store”.

Acceptance criteria

  • Launch arguments are added to the options
  • The practice app loaded
  • At least 1 assertion passes

Selenium WebDriver 4 · Selenium · Setup & first script