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

Method path

playwright/_impl/_video.py:36–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

34 return f"<Video page={self._page}>"
35
36 async def path(self) -> pathlib.Path:
37 if self._is_remote:
38 raise Error(
39 "Path is not available when using browserType.connect(). Use save_as() to save a local copy."
40 )
41 if not self._artifact:
42 raise Error("Video recording has not been started.")
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:

Calls 1

ErrorClass · 0.85