MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_response_json_should_work

Function test_response_json_should_work

tests/async/test_network.py:584–587  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

582
583
584async def test_response_json_should_work(page: Page, server: Server) -> None:
585 response = await page.goto(server.PREFIX + "/simple.json")
586 assert response
587 assert await response.json() == {"foo": "bar"}
588
589
590async def test_response_body_should_work(

Callers

nothing calls this directly

Calls 2

gotoMethod · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected