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

Method __init__

playwright/_impl/_js_handle.py:52–59  ·  view source on GitHub ↗
(
        self, parent: ChannelOwner, type: str, guid: str, initializer: Dict
    )

Source from the content-addressed store, hash-verified

50
51class JSHandle(ChannelOwner):
52 def __init__(
53 self, parent: ChannelOwner, type: str, guid: str, initializer: Dict
54 ) -> None:
55 super().__init__(parent, type, guid, initializer)
56 self._preview = self._initializer["preview"]
57 self._channel.on(
58 "previewUpdated", lambda params: self._on_preview_updated(params["preview"])
59 )
60
61 def __repr__(self) -> str:
62 return f"<JSHandle preview={self._preview}>"

Callers

nothing calls this directly

Calls 2

_on_preview_updatedMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected