(
self,
path: Union[pathlib.Path, str] = None,
indexedDB: bool = None,
)
| 454 | return APIResponse(self, response) |
| 455 | |
| 456 | async def storage_state( |
| 457 | self, |
| 458 | path: Union[pathlib.Path, str] = None, |
| 459 | indexedDB: bool = None, |
| 460 | ) -> StorageState: |
| 461 | result = await self._channel.send_return_as_dict( |
| 462 | "storageState", None, {"indexedDB": indexedDB} |
| 463 | ) |
| 464 | if path: |
| 465 | await async_writefile(path, json.dumps(result)) |
| 466 | return result |
| 467 | |
| 468 | |
| 469 | def file_payload_to_json(payload: FilePayload) -> ServerFilePayload: |