From 72c6f4f69e23fefb6910ced1ed18e13df03ab498 Mon Sep 17 00:00:00 2001 From: Alexey Lagunov Date: Fri, 21 May 2021 19:15:21 +0300 Subject: [PATCH] Corrected JavaScript lambda in python sections (#6692) --- docs/src/verification.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/verification.md b/docs/src/verification.md index d0c9cb10b4..bec72a1c02 100644 --- a/docs/src/verification.md +++ b/docs/src/verification.md @@ -56,7 +56,7 @@ msg.args().get(1).jsonValue() // 42 ```python async # Listen for all console logs -page.on("console", msg => print(msg.text)) +page.on("console", lambda msg: print(msg.text)) # Listen for all console events and handle errors page.on("console", lambda msg: print(f"error: {msg.text}") if msg.type == "error" else None) @@ -74,7 +74,7 @@ await msg.args[1].json_value() # 42 ```python sync # Listen for all console logs -page.on("console", msg => print(msg.text)) +page.on("console", lambda msg: print(msg.text)) # Listen for all console events and handle errors page.on("console", lambda msg: print(f"error: {msg.text}") if msg.type == "error" else None) @@ -254,4 +254,4 @@ var popup = await page.RunAndWaitForEventAsync(PageEvent.Popup, async () => - [Page] - [`event: Page.requestFailed`] - [`event: Page.dialog`] -- [`event: Page.popup`] \ No newline at end of file +- [`event: Page.popup`]