DOMStorage

class DOMStorage(cdp: CDP) : Domain

Query and modify DOM storage.

Constructors

Link copied to clipboard
constructor(cdp: CDP)

Types

Link copied to clipboard
@Serializable
data class ClearParameter(val storageId: DOMStorage.StorageId)
Link copied to clipboard
@Serializable
data class DomStorageItemAddedParameter(val storageId: DOMStorage.StorageId, val key: String, val newValue: String)
Link copied to clipboard
@Serializable
data class DomStorageItemRemovedParameter(val storageId: DOMStorage.StorageId, val key: String)
Link copied to clipboard
@Serializable
data class DomStorageItemsClearedParameter(val storageId: DOMStorage.StorageId)
Link copied to clipboard
@Serializable
data class DomStorageItemUpdatedParameter(val storageId: DOMStorage.StorageId, val key: String, val oldValue: String, val newValue: String)
Link copied to clipboard
@Serializable
data class GetDOMStorageItemsParameter(val storageId: DOMStorage.StorageId)
Link copied to clipboard
@Serializable
data class GetDOMStorageItemsReturn(val entries: List<List<Double>>)
Link copied to clipboard
@Serializable
data class RemoveDOMStorageItemParameter(val storageId: DOMStorage.StorageId, val key: String)
Link copied to clipboard
@Serializable
data class SetDOMStorageItemParameter(val storageId: DOMStorage.StorageId, val key: String, val value: String)
Link copied to clipboard
@Serializable
data class StorageId(val securityOrigin: String? = null, val storageKey: String? = null, val isLocalStorage: Boolean)

DOM Storage identifier.

Functions

Link copied to clipboard
suspend fun clear(storageId: DOMStorage.StorageId)
suspend fun clear(args: DOMStorage.ClearParameter, mode: CommandMode = CommandMode.DEFAULT)
Link copied to clipboard
suspend fun disable(mode: CommandMode = CommandMode.DEFAULT)

Disables storage tracking, prevents storage events from being sent to the client.

Link copied to clipboard
suspend fun enable(mode: CommandMode = CommandMode.DEFAULT)

Enables storage tracking, storage events will now be delivered to the client.

Link copied to clipboard
suspend fun removeDOMStorageItem(args: DOMStorage.RemoveDOMStorageItemParameter, mode: CommandMode = CommandMode.DEFAULT)
suspend fun removeDOMStorageItem(storageId: DOMStorage.StorageId, key: String)
Link copied to clipboard
suspend fun setDOMStorageItem(args: DOMStorage.SetDOMStorageItemParameter, mode: CommandMode = CommandMode.DEFAULT)
suspend fun setDOMStorageItem(storageId: DOMStorage.StorageId, key: String, value: String)