Tungsten v0.1.0 Tungsten.CDP.DOMStorage View Source

DOMStorage

Query and modify DOM storage.

Link to this section Summary

Link to this section Types

Link to this type

cdp_item_type() View Source
cdp_item_type() :: [String.t()]

DOMStorage.Item

DOM Storage item.

Link to this type

cdp_storage_id_type() View Source
cdp_storage_id_type() :: %{
  security_origin: String.t(),
  is_local_storage: boolean()
}

DOMStorage.StorageId

DOM Storage identifier.

Link to this section Functions

Link to this function

clear(session, parameters, options \\ []) View Source
clear(
  GenServer.server(),
  %{storage_id: cdp_storage_id_type()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

DOMStorage.clear

This command has no documentation

Link to this function

disable(session, parameters \\ %{}, options \\ []) View Source
disable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

DOMStorage.disable

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

Link to this function

enable(session, parameters \\ %{}, options \\ []) View Source
enable(GenServer.server(), map(), Tungsten.Connection.exec_options()) ::
  {:ok, map()} | {:error, term()}

DOMStorage.enable

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

Link to this function

get_dom_storage_items(session, parameters, options \\ []) View Source
get_dom_storage_items(
  GenServer.server(),
  %{storage_id: cdp_storage_id_type()},
  Tungsten.Connection.exec_options()
) :: {:ok, %{entries: [cdp_item_type()]}} | {:error, term()}

DOMStorage.getDOMStorageItems

This command has no documentation

Link to this function

remove_dom_storage_item(session, parameters, options \\ []) View Source
remove_dom_storage_item(
  GenServer.server(),
  %{storage_id: cdp_storage_id_type(), key: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

DOMStorage.removeDOMStorageItem

This command has no documentation

Link to this function

set_dom_storage_item(session, parameters, options \\ []) View Source
set_dom_storage_item(
  GenServer.server(),
  %{storage_id: cdp_storage_id_type(), key: String.t(), value: String.t()},
  Tungsten.Connection.exec_options()
) :: {:ok, map()} | {:error, term()}

DOMStorage.setDOMStorageItem

This command has no documentation