Skip to content

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

fix response status assertion on python example (#11723)

Leonardo Henrique Tsuda7dc2dce7097a
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 8840dbd85c..2d4d5a0fdc 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -3651,7 +3651,7 @@ response = response_info.value
return response.ok
# or with a lambda
-with page.expect_response(lambda response: response.url == "https://example.com" and response.status === 200) as response_info:
+with page.expect_response(lambda response: response.url == "https://example.com" and response.status == 200) as response_info:
page.click("input")
response = response_info.value
return response.ok