Playwright

Install Playwright and run the example

Easy30 pts
  • Playwright Setup
  • Navigation
  • Web-first Assertions
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-install-playwright-and-run-the-example

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

Objective

Launch a Playwright browser context, open the practice store, and verify that the page title is correct.

Your Task

  1. 1Open the practice application by navigating to TEST_URL.
  2. 2Locate the main store heading #page-title.
  3. 3Assert that the heading contains the text 'Welcome to the practice store'.

Validation Checks

  • The test navigates to TEST_URL
  • Heading #page-title is visible on the page
  • At least 1 assertion passes

Playwright · Playwright Practice Track · Setup & first test