mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
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
|
return response.ok
|
||||||
|
|
||||||
# or with a lambda
|
# 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")
|
page.click("input")
|
||||||
response = response_info.value
|
response = response_info.value
|
||||||
return response.ok
|
return response.ok
|
||||||
|
Loading…
Reference in New Issue
Block a user