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