We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c9a0e commit e0bfe51Copy full SHA for e0bfe51
playwright/_impl/_artifact.py
@@ -33,7 +33,8 @@ async def path_after_finished(self) -> Optional[pathlib.Path]:
33
raise Error(
34
"Path is not available when using browser_type.connect(). Use save_as() to save a local copy."
35
)
36
- return pathlib.Path(await self._channel.send("pathAfterFinished"))
+ path = await self._channel.send("pathAfterFinished")
37
+ return pathlib.Path(path) if path else None
38
39
async def save_as(self, path: Union[str, Path]) -> None:
40
stream = cast(Stream, from_channel(await self._channel.send("saveAsStream")))
0 commit comments