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

Method __init__

playwright/_impl/_screencast.py:46–54  ·  view source on GitHub ↗
(self, page: "Page")

Source from the content-addressed store, hash-verified

44
45class Screencast:
46 def __init__(self, page: "Page") -> None:
47 self._page = page
48 self._loop = page._loop
49 self._dispatcher_fiber = page._dispatcher_fiber
50 self._started = False
51 self._save_path: Optional[Union[str, Path]] = None
52 self._on_frame: Optional[ScreencastFrameCallback] = None
53 self._artifact: Optional[Artifact] = None
54 page._channel.on("screencastFrame", lambda params: self._dispatch_frame(params))
55
56 def _dispatch_frame(self, params: dict) -> None:
57 if not self._on_frame:

Callers

nothing calls this directly

Calls 2

_dispatch_frameMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected