fix response status assertion on python example (#11723)
This commit is contained in:
parent
312ab57f02
commit
7dc2dce709
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue