From 7dc2dce7097a3be0e03b3bc4b8100f30f39ae578 Mon Sep 17 00:00:00 2001 From: Leonardo Henrique Tsuda Date: Fri, 28 Jan 2022 16:50:14 -0300 Subject: [PATCH] fix response status assertion on python example (#11723) --- docs/src/api/class-page.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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