Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs(python): Add await to response.json() for async ApiResponse class example (#35503)
Ekwinderaec54fa5739e
diff --git a/docs/src/api/class-apiresponse.md b/docs/src/api/class-apiresponse.mdindex 5a901b76ba..468a5a830d 100644--- a/docs/src/api/class-apiresponse.md+++ b/docs/src/api/class-apiresponse.md@@ -13,7 +13,8 @@ async def run(playwright: Playwright):assert response.okassert response.status == 200assert response.headers["content-type"] == "application/json; charset=utf-8"- assert response.json()["name"] == "foobar"+ json_data = await response.json()+ assert json_data["name"] == "foobar"assert await response.body() == '{"status": "ok"}'