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

Method dispose

playwright/_impl/_disposable.py:32–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

30 super().__init__(parent, type, guid, initializer)
31
32 async def dispose(self) -> None:
33 try:
34 await self._channel.send(
35 "dispose",
36 None,
37 )
38 except Exception as e:
39 if not is_target_closed_error(e):
40 raise e
41
42 async def close(self) -> None:
43 await self.dispose()

Callers 1

closeMethod · 0.95

Calls 2

is_target_closed_errorFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected