MCPcopy Index your code
hub / github.com/microsoft/playwright-python / on_frame

Function on_frame

tests/async/test_screencast.py:33–35  ·  view source on GitHub ↗
(frame: ScreencastFrame)

Source from the content-addressed store, hash-verified

31 event = asyncio.Event()
32
33 def on_frame(frame: ScreencastFrame) -> None:
34 received.append(frame["data"])
35 event.set()
36
37 await page.screencast.start(on_frame=on_frame)
38 await page.goto(server.EMPTY_PAGE)

Callers

nothing calls this directly

Calls 2

appendMethod · 0.80
setMethod · 0.80

Tested by

no test coverage detected