Playwright

Use the test generator (codegen)

Easy30 pts
  • Codegen
  • Navigation
  • Semantic Locators
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-use-the-test-generator-codegen

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

Objective

Replicate a recorded codegen flow that navigates to the 'About' page and validates the about section using user-facing locators.

Your Task

  1. 1Open the practice store at TEST_URL.
  2. 2Click the 'About' navigation link #nav-about using a user-facing role locator or ID.
  3. 3Assert that the about section #about-section is visible.
  4. 4Assert that the route indicator #current-route displays '/about'.

Validation Checks

  • Navigates to the About section
  • #about-section is visible
  • #current-route displays '/about'
  • At least 2 assertions pass

Playwright · Playwright Practice Track · Setup & first test