Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
docs: fix python snippet
Pavel Feldman3a898c285ecb
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.mdindex 2d4d5a0fdc..04a1221744 100644--- a/docs/src/api/class-page.md+++ b/docs/src/api/class-page.md@@ -3634,13 +3634,13 @@ Response response = page.waitForResponse(response -> "https://example.com".equal```python asyncasync with page.expect_response("https://example.com/resource") as response_info:await page.click("input")-response = response_info.value+response = await response_info.valuereturn response.ok# or with a lambdaasync 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+response = await response_info.valuereturn response.ok```