Input options for defining the storage state (cookies, local storage, IndexedDB) of a page or context. Used in page options or potentially for saving/loading browser state.

Definition

input StorageStateOptions {
  cookies: [JSONObject]!
  localStorage: [JSONObject]!
  indexedDB: [JSONObject]!
}

Fields

cookies: [JSONObject]!

An array of cookie objects. Each object should conform to a structure similar to CookieOptions but typically represented as simple JSON objects when serialized.

localStorage: [JSONObject]!

An array of local storage entries. Each entry is typically an object with ‘name’ and ‘value’ string properties. Example: [{ "name": "myKey", "value": "myValue" }]

indexedDB: [JSONObject]!

An array representing IndexedDB data. The structure is complex and database-specific. This is often captured as a serialized representation of the database’s contents.