Playwright

Open and read a trace

Hard120 pts
  • Playwright Trace
  • tracing.start
  • Debugging
Practice app · TargetQA Practice Store

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

Test URL
/lab/playwright-open-and-read-a-trace

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

Objective

Enable Playwright tracing to capture screenshots and DOM snapshots during test execution.

Your Task

  1. 1Start tracing on the browser context with screenshots and snapshots enabled before running steps.
  2. 2Navigate to the store home page.
  3. 3Verify that #page-title is visible and matches 'TargetQA Practice Store'.
  4. 4Stop tracing and save the output trace archive to 'trace.zip'.

Validation Checks

  • Tracing is started with screenshots and snapshots enabled
  • #page-title is visible with text 'TargetQA Practice Store'
  • Tracing is stopped and saved to 'trace.zip'

Playwright · Playwright Practice Track · Debugging & traces