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

Method stop_tracing

playwright/_impl/_browser.py:282–293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

280 await self._channel.send("startTracing", None, params)
281
282 async def stop_tracing(self) -> bytes:
283 artifact = cast(
284 Artifact, from_channel(await self._channel.send("stopTracing", None))
285 )
286 buffer = await artifact.read_info_buffer()
287 await artifact.delete()
288 if self._cr_tracing_path:
289 make_dirs_for_file(self._cr_tracing_path)
290 with open(self._cr_tracing_path, "wb") as f:
291 f.write(buffer)
292 self._cr_tracing_path = None
293 return buffer

Calls 5

from_channelFunction · 0.90
make_dirs_for_fileFunction · 0.90
read_info_bufferMethod · 0.80
sendMethod · 0.45
deleteMethod · 0.45