97 / 139 · 13 Browser Automation with Playwright · Network Mocking and API Testing← prev⊞ allnext →☰ Read as one page
11.1Overview
Playwright can intercept, modify, and mock network requests at the browser level — without a proxy server. This lets you test edge cases (server errors, slow responses, empty states) that are difficult or impossible to reproduce with a live backend, and it lets you combine UI tests with API verification in a single test.