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

Method dispose

playwright/_impl/_fetch.py:115–124  ·  view source on GitHub ↗
(self, reason: str = None)

Source from the content-addressed store, hash-verified

113 self._timeout_settings = TimeoutSettings(None)
114
115 async def dispose(self, reason: str = None) -> None:
116 self._close_reason = reason
117 await self._tracing._export_all_hars()
118 try:
119 await self._channel.send("dispose", None, {"reason": reason})
120 except Error as e:
121 if is_target_closed_error(e):
122 return
123 raise e
124 self._tracing._reset_stack_counter()
125
126 @property
127 def tracing(self) -> Tracing:

Callers

nothing calls this directly

Calls 4

is_target_closed_errorFunction · 0.90
_export_all_harsMethod · 0.80
_reset_stack_counterMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected