Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs: fix python snippet

Pavel Feldman3a898c285ecb
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 2d4d5a0fdc..04a1221744 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -3634,13 +3634,13 @@ Response response = page.waitForResponse(response -> "https://example.com".equal
```python async
async with page.expect_response("https://example.com/resource") as response_info:
await page.click("input")
-response = response_info.value
+response = await response_info.value
return response.ok
# or with a lambda
async with page.expect_response(lambda response: response.url == "https://example.com" and response.status == 200) as response_info:
await page.click("input")
-response = response_info.value
+response = await response_info.value
return response.ok
```