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

This commit is contained in:
browse 2021-11-15 18:20:46 +08:00 committed by GitHub
parent 05cbb52c6d
commit 5d4ec1d512
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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