Playwright

Record and replay network (HAR)

Hard120 pts
  • HAR
  • routeFromHAR
  • Deterministic Tests
Practice app · TargetQA Practice Store

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

Test URL
/lab/qa-automation-record-and-replay-network-har

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

Objective

Configure HAR network routing before navigation and verify deterministic page loading.

Your Task

  1. 1Configure HAR network routing before navigation using 'tests/fixtures/network.har' (enabling fallback for unrecorded requests).
  2. 2Navigate to the store home page at TEST_URL.
  3. 3Assert that the hero heading (#page-title) is visible.

Validation Checks

  • Configures HAR network routing via page.routeFromHAR
  • Store home page is loaded at TEST_URL
  • Hero heading (#page-title) is verified visible
  • At least 1 assertion passes

Playwright · QA Automation Practice Track · Network & mocking