Intercepts a network URL and returns a stubbed JSON response. Supports Gherkin DocStrings for the body content.
When I pw intercept URL "/api/user" and stub body:"""{ "id": 101, "status": "active" }""" Copy
When I pw intercept URL "/api/user" and stub body:"""{ "id": 101, "status": "active" }"""
Intercepts a network URL and returns a stubbed JSON response. Supports Gherkin DocStrings for the body content.