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

Method save_as

playwright/_impl/_artifact.py:42–53  ·  view source on GitHub ↗
(self, path: Union[str, Path])

Source from the content-addressed store, hash-verified

40 return pathlib.Path(path)
41
42 async def save_as(self, path: Union[str, Path]) -> None:
43 stream = cast(
44 Stream,
45 from_channel(
46 await self._channel.send(
47 "saveAsStream",
48 None,
49 )
50 ),
51 )
52 make_dirs_for_file(path)
53 await stream.save_as(path)
54
55 async def failure(self) -> Optional[str]:
56 reason = await self._channel.send(

Callers

nothing calls this directly

Calls 3

from_channelFunction · 0.90
make_dirs_for_fileFunction · 0.90
sendMethod · 0.45

Tested by

no test coverage detected