docs(python): fix incorrect snippet syntax (#10314)
This commit is contained in:
parent
05cbb52c6d
commit
5d4ec1d512
|
|
@ -3629,7 +3629,7 @@ response = response_info.value
|
||||||
return response.ok
|
return response.ok
|
||||||
|
|
||||||
# or with a lambda
|
# 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")
|
await page.click("input")
|
||||||
response = response_info.value
|
response = response_info.value
|
||||||
return response.ok
|
return response.ok
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue