(self, path: Union[str, pathlib.Path])
| 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: |