Tungsten v0.1.0 Tungsten.CDP.Console View Source

Console

This domain is deprecated - use Runtime or Log instead.

Link to this section Summary

Link to this section Types

Link to this type

cdp_console_message_type() View Source
cdp_console_message_type() :: %{
  :source =>
    :worker
    | :deprecation
    | :other
    | :security
    | :rendering
    | :appcache
    | :storage
    | :"console-api"
    | :network
    | :javascript
    | :xml,
  :level => :info | :debug | :error | :warning | :log,
  :text => String.t(),
  optional(:url) => String.t(),
  optional(:line) => integer(),
  optional(:column) => integer()
}

Console.ConsoleMessage

Console message.

Link to this section Functions

Link to this function

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

Console.clearMessages

Does nothing.

Link to this function

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

Console.disable

Disables console domain, prevents further console messages from being reported 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()}

Console.enable

Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification.