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

Method storage_state

playwright/_impl/_fetch.py:456–466  ·  view source on GitHub ↗
(
        self,
        path: Union[pathlib.Path, str] = None,
        indexedDB: bool = None,
    )

Source from the content-addressed store, hash-verified

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
469def file_payload_to_json(payload: FilePayload) -> ServerFilePayload:

Calls 2

async_writefileFunction · 0.90
send_return_as_dictMethod · 0.80