dom_storage
DomStorageItemAdded
dataclass
Source code in zendriver/cdp/dom_storage.py
key: str
instance-attribute
new_value: str
instance-attribute
storage_id: StorageId
instance-attribute
__init__(storage_id, key, new_value)
DomStorageItemRemoved
dataclass
Source code in zendriver/cdp/dom_storage.py
key: str
instance-attribute
storage_id: StorageId
instance-attribute
__init__(storage_id, key)
DomStorageItemUpdated
dataclass
Source code in zendriver/cdp/dom_storage.py
key: str
instance-attribute
new_value: str
instance-attribute
old_value: str
instance-attribute
storage_id: StorageId
instance-attribute
__init__(storage_id, key, old_value, new_value)
from_json(json)
classmethod
Source code in zendriver/cdp/dom_storage.py
DomStorageItemsCleared
dataclass
Source code in zendriver/cdp/dom_storage.py
Item
Bases: list
DOM Storage item.
Source code in zendriver/cdp/dom_storage.py
__repr__()
from_json(json)
classmethod
SerializedStorageKey
Bases: str
Source code in zendriver/cdp/dom_storage.py
__repr__()
from_json(json)
classmethod
StorageId
dataclass
DOM Storage identifier.
Source code in zendriver/cdp/dom_storage.py
is_local_storage: bool
instance-attribute
security_origin: typing.Optional[str] = None
class-attribute
instance-attribute
storage_key: typing.Optional[SerializedStorageKey] = None
class-attribute
instance-attribute
__init__(is_local_storage, security_origin=None, storage_key=None)
from_json(json)
classmethod
Source code in zendriver/cdp/dom_storage.py
to_json()
Source code in zendriver/cdp/dom_storage.py
clear(storage_id)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_id
|
StorageId
|
|
required |
Source code in zendriver/cdp/dom_storage.py
disable()
Disables storage tracking, prevents storage events from being sent to the client.
Source code in zendriver/cdp/dom_storage.py
enable()
Enables storage tracking, storage events will now be delivered to the client.
Source code in zendriver/cdp/dom_storage.py
get_dom_storage_items(storage_id)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_id
|
StorageId
|
|
required |
Returns:
Type | Description |
---|---|
Generator[T_JSON_DICT, T_JSON_DICT, List[Item]]
|
|
Source code in zendriver/cdp/dom_storage.py
remove_dom_storage_item(storage_id, key)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_id
|
StorageId
|
|
required |
key
|
str
|
|
required |
Source code in zendriver/cdp/dom_storage.py
set_dom_storage_item(storage_id, key, value)
Parameters:
Name | Type | Description | Default |
---|---|---|---|
storage_id
|
StorageId
|
|
required |
key
|
str
|
|
required |
value
|
str
|
|
required |