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`]