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

Method show_overlay

playwright/_impl/_screencast.py:124–134  ·  view source on GitHub ↗
(self, html: str, duration: float = None)

Source from the content-addressed store, hash-verified

122 await self._page._channel.send("screencastHideActions", None)
123
124 async def show_overlay(self, html: str, duration: float = None) -> DisposableStub:
125 result = await self._page._channel.send_return_as_dict(
126 "screencastShowOverlay", None, locals_to_params(locals())
127 )
128 overlay_id = (result or {}).get("id")
129 return DisposableStub(
130 lambda: self._page._channel.send(
131 "screencastRemoveOverlay", None, {"id": overlay_id}
132 ),
133 self._page,
134 )
135
136 async def show_chapter(
137 self,

Calls 5

locals_to_paramsFunction · 0.90
DisposableStubClass · 0.90
send_return_as_dictMethod · 0.80
getMethod · 0.45
sendMethod · 0.45