Skip to content

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

docs(python): fix incorrect snippet syntax (#10314)

browse5d4ec1d5123c
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index b5a9438c72..d1e613c9e2 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -3629,7 +3629,7 @@ response = 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:
+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
return response.ok