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

Method save_as

playwright/_impl/_video.py:45–52  ·  view source on GitHub ↗
(self, path: Union[str, pathlib.Path])

Source from the content-addressed store, hash-verified

43 return self._artifact.absolute_path
44
45 async def save_as(self, path: Union[str, pathlib.Path]) -> None:
46 if self._page._connection._is_sync and not self._page._is_closed:
47 raise Error(
48 "Page is not yet closed. Close the page prior to calling save_as"
49 )
50 if not self._artifact:
51 raise Error("Video recording has not been started.")
52 await self._artifact.save_as(path)
53
54 async def delete(self) -> None:
55 if self._artifact:

Calls 1

ErrorClass · 0.85