← Back to Storage domain

Storage.getStorageKeyForFrame

Returns a storage key given a frame id. Deprecated. Please use Storage.getStorageKey instead.

Domain: Storage deprecated

Parameters

NameTypeDescription
frameIdPage.FrameId

Returns

NameTypeDescription
storageKeySerializedStorageKey

Example Request

{
  "id": 1,
  "method": "Storage.getStorageKeyForFrame",
  "params": {
    "frameId": "ABC123DEF456"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "storageKey": "storageKey-value"
  }
}

Usage in Node.js

const result = await send('Storage.getStorageKeyForFrame', {"frameId": "ABC123DEF456"});
console.log(result);
// {"storageKey": "storageKey-value"}