Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
append
Method · 0.80
set
Method · 0.80
Tested by
no test coverage detected